node-kickstart is a minimal NodeJS seed project that should help a basic NodeJS app get off the ground.
- As always, do
npm installfirst - Create
.envfile with the following contents:
DEBUG=node-kickstart*
NODE_ENV=development
PORT=8080
- Main file ->
server/app.js - Run & watch for changes:
npm run dev - Run Mocha tests:
npm test - Web client served from
public/directory
- Navigate to
localhost:8080in a browser - Send a
GETrequest tolocalhost:8080/api
- Express: App framework and API
- debug: a better
console.log() - dotenv: loads environment variable from
.envfile - nodemon: run app while watching for file changes
- Mocha & Chai: unit testing & assertion framework