-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
Alberto Cottica edited this page Feb 27, 2017
·
6 revisions
You need:
- Clone this repository.
- Open a Terminal window and navigate to the repo's directory.
- Type
cp config.js.development config.js
followed byReturn
. - Type
cd import
followed byReturn
. - Type
node import-meps-json.js
(on some systems it isnodejs import-meps-json.js
), followed byReturn
.. This will trigger the import of the database of MEPs. Your Terminal window will display something like this: - 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 typingCrtl + C
. You will get a confirmation messageThanks! You have correctly imported/updated 751 users
. - Type
cd ..
followed byReturn
. - Start the application by typing
nodejs app.js
followed byReturn
. You will get the message:Express server listening on port 3000
(the port number may vary). - 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.