This was built with node and koajs (modern alternative for express)
The API Docs can be viewed at http://localhost:8080/apiDocs
Use the swagger UI http://petstore.swagger.io/ for testing (spec path http://localhost:8080/_api.json)
- Enter the directory.
- Installing yarn package manager : https://yarnpkg.com/en/docs/install
- We need node version greater than 8. If your distro does not provide that, you can use nvm to install it
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
source ~/.bashrc
nvm install node
source ~/.bashrc
- Installing dependencies:
yarn install
This is the dev server which will auto refresh when you edit any file
Open a new window in your Terminal. Enter the directory.
yarn watch
- koajs
- sequelize
- koa-joi-router and joi
- Postman for debugging (see these videos)
- Styling is automatically enforced by prettier