Fullstack demo generated using Angular Fullstack
Angular Fullstack is a MEAN generator. It scaffolds applications with MongoDB, Express, AngularJS, and Node.
By running yo angular-fullstack
and checking yes to everything, you get a project very similar to this. This repo is to give you an idea of what that project looks like.
http://fullstack-demo.herokuapp.com/.
Note: Demo is running on Heroku free instance, so you will likely have to refresh for it to load.
Here's an overview of the application structure:
- Server Application High level logic for bootstrapping the server.
- NodeJS Routes Where we set up our REST api routes
- Server Controllers Where we take care of backend logic
- Server Models Where we setup our object schema and validation.
- NodeJS Middleware Where we put additional logic that a route must pass through before going to the next route.
- Angular Routes Where we set up routes to our application views
- Angular Views Where we set up our application views
- Angular Controllers Where we keep our frontend logic
- Angular Services Where we connect to our REST api
- Angular Tests Where we write our angular tests
An equivalent of this project can be generated with Coffeescript and Jade Templates by using yo angular-fullstack --coffee --jade
Easily create your own project as specified here: https://github.com/DaftMonk/generator-angular-fullstack#usage
Then launch your express server in development mode using
$ grunt serve