Skip to content

A great starting point for writing AngularJS apps backed by an Express-powered node.js server.

Notifications You must be signed in to change notification settings

rjbordon/angular-express-ejs-seed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Express Seed

Start an awesome app with AngularJS on the front, Express with EJS + 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 and a bunch of scripts all pre-configured 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 views with EJS and how partials can be served by Express as static files.

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:

node app.js

Receiving updates from upstream

Just fetch the changes and merge them into your project with git.

Directory Layout

app.js              --> app config
package.json        --> for npm
public/             --> all of the files to be used in on the client side
  css/              --> css files
    app.css         --> default stylesheet
  img/              --> image files
  js/               --> javascript files
    app.js          --> declare top-level app module
    controllers.js  --> application controllers
    directives.js   --> custom angular directives
    filters.js      --> custom angular filters
    services.js     --> custom angular services
    lib/            --> angular and 3rd party JavaScript libraries
      angular/
        angular.js            --> the latest angular js
        angular.min.js        --> the latest minified angular js
        angular-*.js          --> angular add-on modules
        version.txt           --> version number
  partials/         --> angular view partials
    partial1.html
    partial2.html
routes/
  api.js            --> route for serving JSON
  index.js          --> route for serving HTML pages
views/
  index.ejs        --> main page for app

Contact

For more information on AngularJS please check out http://angularjs.org/ For more on Express, http://expressjs.com.

License

MIT

About

A great starting point for writing AngularJS apps backed by an Express-powered node.js server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.1%
  • CSS 10.9%