Server for blog application
- Node.js (v12)
- Express + TypeScript
- Jest
- Swagger
- Clone repo
git clone [email protected]:GoranMandic91/blog-app-api.git
- Install dependencies
cd blog-app-api && npm install
- Start dev environment
npm run start:dev
- Run tests
npm run test
- Documentation available on:
http://localhost:4000/docs
-
Clone repo:
git clone [email protected]:GoranMandic91/blog-app-api.git && cd blog-app-api
-
Build docker image
docker build -t blog-app-api .
- Run docker container
docker start blog-api 2>/dev/null || \
docker run --name blog-api \
-p 4000:4000 \
-e PORT=4000 \
-d blog-app-api:latest
-
Documentation available on:
http://localhost:4000/docs
-
Run a command in a running container
docker exec -it blog-api sh
- Get container logs
docker logs blog-api