- Install Docker and Docker Compose
- Go to
infra
directory - Run
docker compose -d up
- Get the MongoDB IP Address, will be detailed later on by running
docker inspect infra-mongo-1
- Copy the IP Address under
Networks -> IPAddress
and replace a variableDB_HOST
inapi/src/db/init.js
- Start the SAM app by going to
api
folder - Run
sam local start-api --docker-network infra_default
- API should be available at
http://localhost:3000
- Make sure you have NodeJS
- Install yarn globally
npm i -g yarn
- Install dependencies
yarn
- Start the development server
yarn start
- Go to
http://localhost:8000
This is unfinished though
- Make sure you have NodeJS
- Install dependencies
npm i
- Run
npm run dev