View on GitHub

Egress-foundation

Start writing a web app already, with Zurb's Foundation framework

Download this project as a .zip file Download this project as a tar.gz file

egress-foundation: start writing a web app already.

egress-foundation is a minimal Express app template for a user account system, built with Twitter's foundation. I built this with the intention of getting user-based node.js apps scaffolded out quickly.

Branch Build Status
Master
Develop

Usage

Current problems (marked with a TODO)

Getting Started:

  1. If it does not exist, create a .env file in the root directory of this project.
  2. Your .env file should contain your PostgreSQL connection string in the following format, the ?ssl=true query parameter is necessary only if your database connection requires SSL (Heroku's databases do) and will default to false if omitted:

    DATABASE_URL=postgres://<username>:<password>@<host>:<port>/<dbname>?ssl=true
    

    This will allow your application to connect to your database

  3. Modify the config object in config.js to modify the application settings.

  4. Running foreman start will serve the application on the post listed in config.js (defaulting to 5000), and process the DATABASE_URL variable, locally. Alternatively, running node app.js will do the same thing if you don't want to use foreman.

Deploying to Heroku:

  1. Authenticate via the Heroku command line, heroku login
  2. Set your environment variables on Heroku
    • If you've already setup your .env file as documented above, simply run heroku config:push
    • Otherwise you can run the following command: heroku config:set DATABASE_URL=postgres://<username>:<password>@<host>:<port>/<dbname>?ssl=true Then run heroku config:push
  3. Push your code up to your Heroku app
  4. You're done!

Modifying site content

Running the tests

Validating JS and Jade files

Dependencies

Issues

Contact

You can most easily reach me on twitter @_Shakeel

License

This project is licensed under the terms of the MIT license