A basic Nodejs server framework used in the Programmeren 4 course. The repo contains branches for each of the lessons.
This basic server contains:
- Express routing and error handling via next()
- JavaScript classes for OO-like programming
- Many async functions illustrating async behavior of Nodejs
- JWT authentication
- Extensive validation of properties through asserts
- Hashed passwords using bcrypt
- Examples of BDD testcases using Mocha, Chai and Should
- Tests are run online on Travis CI
Fork this repo and clone your copy onto your local machine, then run
npm install
npm start
For testing:
npm test
The different branches contain different parts of the course contents. Check out the highest branch for the latest results. For example:
git clone url-to-your-repo
cd node-basic-server
git checkout les-5
Checking out branches can also be done in your IDE. See Versioncontrol in VS Code or WebStorm.