INSTALLING THE APPLICATION
- Install npm
- Do “npm install”
- “npm install nodemon -g”
- install redis server (different commands on different OS)
RUNNING THE APPLICATON
- “redis-server” will run the redis server
- do “./bin/www” to run the server It will restart automatically every time you change the code
DEVELOPING YOUR MODULE
- Watch the video: https://www.codeschool.com/screencasts/soup-to-bits-building-blocks-of-express-js/?utm_medium=email&utm_campaign=recommendation_soup_to_bits&utm_source=mandrill&utm_content=null
- Follow the middleware format from the example_middleware folder in the middlewareSet branch
- While developing your module, you might need to install a new package: npm install --save (see video) npm shrinkwrap (see video)
- For testing, you can import the postman template Bill provided us, here: https://www.getpostman.com/collections/bd855866f763a03a5588
- After developing your module, put some test cases in the test.js file
- when you want to run the test you just run “npm test” Make sure nothing fails after you have finished