I wanted to build a quick template on an approach to building web apis in the future
NOTE: This is not production ready code
- Docker / Docker Compose get-started
- (optional) Node Js (See ./.tool-versions) for the current version
- Start docker ->
docker-compose up
- Download Postman
- Import collection from local postman folder
- Set environment to development
- Use the collection to view implemented apis
- Start DB Container (detached)
docker-compose up db -d
- Copy .env.sample to .env
cp ./.env.sample ./.env
- Install NPM Dependencies
npm i
- Set up DB (only on first run) or if you want to do a dry run
npm run db:reset
- Run in dev mode
npm run dev
- Start developing & Testing (will have to turn off
npm run dev
process)
npm test
- Express as the web server
- Newman with postman for documentation/acceptance tests
- Sequelize with sequelize-cli for database management
- Supertest with mocha and chai for tdd