A simple Express server template which comes with the following features:
- Express server
- Testing using Mocha
- Logging using Winston
- Optional API protection using an API_KEY
- Configuration via environment variables
/liveness
endpoint for liveness/health check- Code linting using Eslint
- Code formatting using Prettier
- NPM scripts:
start
- Start the applicationstart:dev
- Start a server watching for code changestest
- Run tests and lintertest:dev
- Run tests and watch for code changes
- Clone the project:
$ git clone https://github.com/iensu/express-server-js-template my-project-name
- Remove the Git history:
$ cd my-project-name $ rm -rf .git
- Re-initialize git:
$ git init
- Update the project
name
field in package.json, package-lock.json and change theauthor
field. - Make an initial commit
$ git commit -am "Initial commit"
This project is a grateful recipient of the Futurice Open Source sponsorship program.