Skip to content
Alberto Cottica edited this page Feb 27, 2017 · 6 revisions

Before you start

You need:

  1. nodejs
  2. npm
  3. MongoDb

How to install

  1. Clone this repository.
  2. Open a Terminal window and navigate to the repo's directory.
  3. Type cp config.js.development config.js followed by Return.
  4. Type cd import followed by Return.
  5. Type node import-meps-json.js (on some systems it is nodejs import-meps-json.js), followed by Return.. This will trigger the import of the database of MEPs. Your Terminal window will display something like this: Importing MEPs data
  6. Note: at the time of writing, the import displays also numerous Unhandled rejection ReferenceError: doc is not defined. This is due to a bug in closing Mongoose's default connection. Don't worry and break manually the process by typing Crtl + C. You will get a confirmation message Thanks! You have correctly imported/updated 751 users.
  7. Type cd .. followed by Return.
  8. Start the application by typing nodejs app.js followed by Return. You will get the message: Express server listening on port 3000 (the port number may vary).
  9. Open a browser window. In the address bar type [http://localhost:3000] (or whatever port number listed by the message in the previous step). You should get the welcome screen. Welcome screen
Clone this wiki locally