node-kickstart is a minimal NodeJS seed project that should help a basic NodeJS app get off the ground.
- As always, do
npm install
first - Create
.env
file 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:8080
in a browser - Send a
GET
request tolocalhost:8080/api
- Express: App framework and API
- debug: a better
console.log()
- dotenv: loads environment variable from
.env
file - nodemon: run app while watching for file changes
- Mocha & Chai: unit testing & assertion framework