MEAN Seed App
Built on the angular-express-seed by btford here: https://github.com/btford/angular-express-seed
This is a seed project for building an app using MongoDB, Express.js, Angular.js, and Node.js. My enhancements to btford's project include Bootstrap 3.0 integration (along with Angular-UI/Bootstrap for Boostrap directives), REST API to local MongoDB instance via Mongoose, Socket.IO support, and unit testing via Mocha. This seed app contains sample code for a realtime chat app.
Running this app
First, install and run MongoDB. The sample code in this build doesn't use any authentication to connect, so leave settings to default.
From the base directory:
Once node modules are loaded:
Readme from btford's project here:
Start an awesome app with AngularJS on the front, Express + Node on the back. This project is an application skeleton for a typical AngularJS web app for those who want to use Node to serve their app.
The seed contains angular libraries, test libraries and a bunch of scripts all preconfigured for instant web development gratification. Just clone the repo (or download the zip/tarball) and you're ready to develop your application.
The seed app shows how to wire together Angular client-side components with Express on the server. It also illustrates writing angular partials/views with the Jade templating library.
Note: Although Jade supports interpolation, you should be doing that mostly on the client. Mixing server and browser templating will convolute your app. Instead, use Jade as a syntactic sugar for HTML, and let AngularJS take care of interpolation on the browser side.
How to use angular-express-seed
Clone the angular-express-seed repository, run
npm install to grab the dependencies, and start hacking!
Running the app
Runs like a typical express app:
Receiving updates from upstream
Just fetch the changes and merge them into your project with git.
A simple blog based on this seed.