##Example app demonstrating Node, Express, MongoDB(mongoose), and Angular
This is a quick bootstrap demonstrating a full stack app. It is simple, but creates a good road map and reference. It doesn't cover everything. It does cover GET,POST, and DELETE.
###Steps to getting it started on your machine:
- Make sure you have MongoDb installed on your computer.
- Create a collection called mammals in any database you choose(I put mine in the the test database).
- In
app.js
changeres.setHeader('Access-Control-Allow-Origin', 'http://localhost:63342');
to your localhost. - In
app.js
changemongoose.connect('mongodb://localhost/test');
to your database(i.e. if my database is called 'newDatabase' I would putmongoose.connect('mongodb://localhost/newDatabase');
). 5.Run Mongo(runmongod
in your terminal). - Run
npm install
on the project in your terminal. cd
into the API folder.- Run
node app.js
in your terminal. - Open index.html in a browser.