Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

A template for an Express based web application.

License

Notifications You must be signed in to change notification settings

RobertoMachorro/express_webapp

Repository files navigation

express_webapp

This project is both an oppinionated sample application for efficient use of Node Express, and a starter template for your own projects. This includes all the basics of a web application, tuned for local development and tested on production deployement to Heroku and Docker.

Features

History

This was initially generated using the express command as follows:

$ express --view ejs --git

Unfortunately, it was too bare bones and had some minor issues. Bugs where fixed and the supporting libraries where added via NPM.

Try it

$ git clone git@github.com:RobertoMachorro/express_webapp.git
$ npm install
$ DEBUG=express-webapp:* npm start

Live Demo

Try the demo at Heroku.

Customizing

Fork or branch this project, then change all express-webapp references to your application's name (optional). Now you are ready to add views, controllers, images, etc. Each instance needs its own config/config.json, for database configuration; Copy a starter from config_.json template.

When working with databases, in particular between different environments. It's best to configure the DATABASE_URL environment variable.

[postgresql|mysql]://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]

When adding Models and Seeds, make sure you migrate and run seeds as needed.

Notes

  • This project is a compilation of multiple projects. Care has been taken to standardize as much as possible, but stuff may still be patchy looking.
  • Production has been tested in Heroku / AWS with no issues, however, a database enviroment must be prior setup.

About

A template for an Express based web application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published