Skip to content

Nabhag8848/backend-blog-application

Repository files navigation

Nest Logo

Description

Backend Blog Application Build using NestJS, PostgreSQL, Prisma, Docker and Swapper.

Setting up Project locally

  • Fork the project: Click the gray Fork button in the top right of this page. This creates your copy of the project and saves it as a new repository in your github account

  • Click on the green Code button, then either the HTTPS or SSH option and, click the icon to copy the URL. Now you have a copy of the project. Thus, you can play around with it locally on your computer.

  • Run the following commands into a terminal window (Command Prompt, Powershell, Terminal, Bash, ZSH). Do this to download the forked copy of this repository to your computer.

  git clone <paste URL you have copied earlier>
  • Switch to the cloned folder. You can paste this command into the same terminal window.
  cd backend-blog-application

Installing Dependencies:

# using npm
$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Swagger Docs

1.visit http://localhost:3000/api

Official docs at https://docs.nestjs.com/openapi/introduction

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Stay in touch

License

It is MIT licensed.