This is some boilerplate code that can be used for a quick start with express projects
Complete these steps to configure your "new proj"
- clone this repo to your machine with
git clone BOILERPLATE-URL NEW-PROJECT-NAME
cd
into the cloned repo- make a fresh start of the git history
rm -rf .git && git init
- install your node dependencies with
npm install
- move the example environment file to
.env
that'll get .gitignored and read by the express servermv example.env .env
- edit the contents of
package.json
to use your NEW-PROJECT-NAME instead of"name": "express-boilerplate",
start with npm start
start nodemon for the app with npm run dev
run your tests with npm test
when you're ready to deploy, add a new Heroku application with heroku create
. This will make a new git remote called "heroku" and you can then npm run deploy
to push to this remote's master branch.