azjishlay / mean-contact-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mean-contact-list

A contact list app, based on this tutorial, that creates a RESTful API server with Node.js and Express, and then built with AngularJS to consume the API web service. Deploy to Heroku, or use the command line to run the app locally.

$ heroku local

Before creating a local .env file, make sure it will not be updated to source control, as it should only be used for local configuration.

$ echo .env >> .gitignore

Create a local .env file in the project directory, and specify the config vars, as below:

MONGODB_URI=mongodb://localhost/<database-name>

or, follow the format for a remote connection:

MONGODB_URI=mongodb://<username>:<password>@<host-name>

If using a local database, don't forget to start MongoDB before running the app.

$ mongod

Additional Resources

About


Languages

Language:JavaScript 58.9%Language:HTML 41.1%