Backend service to power the Shareable frontend.
Built with Express and MongoDB, written in Typescript.
- NPM
- Docker (version 19.03.8)
- docker-compose (version 1.25.4)
- Heroku
Install dependencies.
$ npm ci
Run the server.
$ npm run start:dev
For a prod like build and start run:
$ npm run build
$ npm run start
Optionally tear down containers.
$ npm run clean-containers
In VS Code, open the command palette.
Cmd + Shift + P
Select Debug: Toggle Auto Attach. You should see Auto Attach: On on the bottom bar.
Open a terminal in VS Code.
Run npm run start:dev:debug in our terminal and VS Code will automatically start to debug.
See https://code.visualstudio.com/updates/v1_22#_node-debugging for debugging tips.
Visit https://hostname/api-docs, ie. http://localhost:4000/api-docs.
-
View available containers. See https://docs.docker.com/engine/reference/commandline/cli/ for more info.
$ docker ps -
ERROR: Couldn't connect to Docker daemon. You might need to start Docker for Mac.Make sure to run the docker for mac app. There should be a whale icon at the top bar.