Solve the Problem of deploying the source code downloaded from github to eclipse, githubeclipse

Source: Internet
Author: User
Tags install node

Solve the Problem of deploying the source code downloaded from github to eclipse, githubeclipse

The weather is fine in June 2, 2015
Github Official Website: https://github.com/
The following uses pdf. js as a case study: https://github.com/mozilla/pdf.js
1) Click Download ZIP on the right of the Case website to Download the source code and decompress it.

Note: You can also download the source code by using HTTPS clone URL and Clone in Desktop.

22.16.find the viewer.html file under the decompressed file and rename the file with the suffix. jsp.

Note: You can also view the source code of the Online demo and copy the source code of the demo to the corresponding jsp file.

3). Integrate js and css files into web projects step by step

Note: For convenience, it is best to create a js file and a css file respectively for storing js and css files.

4) run the eclipse project and check and solve the error repeatedly in conjunction with the console of Google chrome until all the errors disappear.

In addition, the Uploader also provides a better way to get the code. The following is a brief introduction.

1). To get a local copy of the current code, clone it using git:

$ git clone git://github.com/mozilla/pdf.js.git$ cd pdf.js

Note: Git for Windows: http://msysgit.github.io/, directly install

2). Next, install Node. js via the official package or via nvm. If everything worked out, run

$ npm install

To install all dependencies for PDF. js.

Note: The official node. js download website is http://nodejs.org/, which can be used as an alternative when the website is unavailable. If you have any installation problems, refer to the URL W3CSCHOOL. CC. If you do not know about nodejs, refer to Baidu encyclopedia.

3). Finally you need to start a local web server as some browsers do not allow opening PDF files using a file: // URL. Run

$ node make server

4). and then you can open

Http: // localhost: 8888/web/viewer.html
It is also possible to view all test PDF files on the right side by opening

Http: // localhost: 8888/test/pdfs /? Frame
Note: If you cannot find the pdf. js folder, you can search by using the EveryThing software. EveryThing is: http://www.voidtools.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.