nest-api-blog
api for saber2pr.top
From Docker
docker pull saber2pr/nest-api-blog:tag
docker run -d -p 3000:3000 -it saber2pr/nest-api-blog:tag
Env
# env: DATABASE_HOST=localhost DATABASE_POST=3306 DATABASE_USER=root DATABASE_PASSWORD=root DATABASE_NAME=nest_api_blog
# docker env: -e DATABASE_HOST=localhost -e DATABASE_POST=3306 -e DATABASE_USER=root -e DATABASE_PASSWORD=root -e DATABASE_NAME=nest_api_blog
DATABASE_HOST=localhost
DATABASE_POST=3306
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_NAME=nest_api_blog
Installation
$ yarn install
Running the app
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
Test
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
Other
next-ssr-blog: Blog SSR. Next.js + Docker + Nginx + JsDelivr + Github Action