Skip to content

edycarreyes99/NoteLink-Backend

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Backend service for the NoteLink project.

Installation

You're going to need yarn. You can install it by run npm i -g yarn. Is preferred to use node.js v16.13.0 Then, you can run the code:

$ yarn install

Running the app

To run the app locally, first you need to have set up the environment variables and the database. The unique environment file that you need to serve the app without problems is the .env file. Then you can run the following code to start the application:

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Info

This project was thinking to be very scalable, so it's divided in modules. Each module has its own controllers, services, and other stuffs that are related to it. I use swagger to document the API, so you can check the documentation on the /api route.

Dependencies

  • @nestjs/mapped-types - A package that helps to map and validate types, it works very well with the class-validator dependency.

  • @nestjs/passport - A package that helps to integrate passport with nestjs.

  • @nestjs/swagger - A package that helps to integrate swagger with nestjs and build the API's documentation.

  • @nestjs/typeorm - A package that helps to integrate typeorm with nestjs and manage many databases with one ORM.

  • class-validator - A package that helps to validate the data that comes from the client.

  • class-transformer - A package that helps to transform the data that comes from the client.

  • dotenv - A package that helps to manage the environment variables.

  • passport - A package that helps to manage the authentication.

  • passport-jwt - A package that helps to manage the authentication with jwt.

  • pg - A package that helps to manage the postgres database.

  • helmet - A package that helps to secure the app.

  • firebase-admin - A package that helps to manage the firebase from the server side.

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

Images

![](src/assets/img/readme-files/notelink-backend.up.railway.app_api(Full HD).png) ![](src/assets/img/readme-files/notelink-backend.up.railway.app_api(Full HD)-(1).png)

About

Backend with NestJS fot the NoteLink Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published