- Developed on node 12, if you have a different version either install nvm or use the docker solution
- Update config.ts with the proper mysql instance variables
npm install -g nodemon
nodemon src/index.ts -- --project tsconfig.json
- Make sure you have npm installed
npm run build && npm run api-tests
- Docker will install all the dependencies including mysql and a mysql client called phpmyadmin (accessible from http://localhost:8090/)
- If docker is not installed run this command
sudo apt install docker
- Copy .env.example as .env
make rebuild
docker logs -f menu_api
docker exec -it menu_api sh
npm run build && npm run api-tests
There's no need for a sql import file, sequelize will automatically create the table structure based on the schema
- Go to https://editor.swagger.io/
- Copy the spec contents from ./specs/menu-api.yaml
- Paste it in swagger editor
- Run requests from swagger editor