/tags-backend

Primary LanguageTypeScript

Tags Backend

Description

Tag application endpoint, made in graphql with NestJs. You can check the Documentation.

Frontend Code.

Live Preview

You can see a live preview in Backend EndPoint.

Environment

Note: to run the tests it is necessary to create the file ".env.test" with the same variables and different values (recommended), for correct operation.

NODE_ENV=development
PORT=3000
MONGO_DB_URI=mongodb://your-host/your-db

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

Coverage Report

# unit tests
$ npm run test

# test coverage
$ npm run test:cov

Initialize Tags

You can initialize a defined number of tags with the InsertTags mutation

mutation InsertTags($nTags: Int!){
  insertTags(nTags: $nTags)
}

Stay in touch