Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.
/ express-seed Public archive

A jumping-off point for node+express based web applications.

License

Notifications You must be signed in to change notification settings

immense/express-seed

Repository files navigation

Express Seed Application

A jumping-off point for node+express based web applications.

included packages:

  • Express
  • Bootstrap 3
  • Font Awesome
  • jQuery
  • Less
  • CoffeeScript
  • Jade
  • Socket.IO
  • Modernizr
  • es5-shim
  • Knockout
  • Mongoose
  • Passport

How to run in development mode:

  • clone the app and install dependencies:
git clone [email protected]:immense/express-seed.git
cd express-seed
npm install
bower install
  • copy the sample config files:
grunt setup
  • edit the config files in app/config to your liking

  • seed the database

grunt db:seed
  • run the server using nodemon:
grunt

How to deploy production

Note: This deploy process is specific to CentOS machines with nginx compiled with the passenger module.

  • create a user account on the host machine called express-seed and set it up:
adduser express-seed
chmod 755 /home/express-seed
su - express-seed
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
  • copy the key into a new deploy key for this app

  • clone the app into sites in the user's home folder and install dependencies:

mkdir sites
cd sites
git clone [email protected]:immense/express-seed.git
cd express-seed
npm install
bower install
  • copy the sample config files:
grunt setup
  • edit the config files in app/config to your liking

    • Note: make sure to change env to production in app/config/app.coffee
    • Note: make sure to set serverNames in app/config/nginx.coffee
  • seed the database

grunt db:seed
  • set up the nginx config and reload the nginx config
su -c "grunt setup-nginx"
su -c "service nginx reload"
  • compile the assets and restart the application:
grunt production

How to update a production deployment

  • pull the changes:
git pull
  • install any new dependencies:
npm install
bower install
  • recompile the assets and restart the application:
grunt production

License

Express Seed is released under the MIT License. Please see the LICENSE file for details.

About

A jumping-off point for node+express based web applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •