[How-To-API] (https://boilercamp.gitbooks.io/boilercamp2016/content/)
A (more or less) working introduction to working with the MEAN stack. This tutorial covers Node.js, AngularJS, MongoDB.
This project is set up in 3 main parts, which you can view here. You'll start by using the Postman chrome extension to work with Twitter's API. Next, you'll use Node to create your very own API. Along the way, you'll learn to work with Mongoose and MongoDB. Finally, you'll create a frontend with AngularJS and integrate it with the your API.
You can download the full presentation slides here.
This repo represents the finished version of the product after all of the walkthroughs are finished. If you want to see how it looks, you can do the following:
- Make sure you have npm and bower installed. In Cloud9, npm is pre-installed, and you can install bower by running
npm install bower -g
. - In the backend folder, run
npm install
- In the backend folder, rename the sample env file to
.env
- In the frontend folder, run
bower install
- Run
mongod
. This should be pre-installed in Cloud9, but you'll need to install it yourself if you're working on your own machine. - In the backend folder, run
node seeder.js
and then runnode server.js
- In the frontend folder, run
http-server ./ -p 8081
- Visit
localhost:8081
and view the running app!
We owe a huge thanks to the entire BoilerCamp team, and all the volunteers who helped at the event!
All code in this repository is released under AGPL v3. See LICENSE.md for details. All educational material (e.g. slides) is released under CC BY-NC 4.0.