- start Docker Desktop
docker compose up
- databasenpm run dev
- server
I do not have docker desktop application (because linux) but can run docker from terminal with: docker compose up
, but make sure it is set up correctly
Then visit localhost:8081
to view the Mongo Express DB, view login in terminal.
docker images
- check existing docker images
docker ps
- check running containers
docker ps -a
- check non running containers
docker compose up -d
- docker runs in the background
docker compose down
- quit docker
Init ts config: npx tsc --init
history
- check terminal commando history
history | grep <command>
- check history for specific command
!<history number>
- run command for specific history number
- Create database on MongoDB Atlas
- run
npm run build
- run
npm run start