/tweets-api

A simple nestJS api to make requests from a databases

Primary LanguageTypeScript

Description

This is an api to test my knowledge made with NestJS, one of the best frameworks of all nodeJS environment. I made this api following the instructions from this beginners course, credits for Marluan Espiritusanto

It's a simple example of a connection with a database to make requests to a server using tweets and users as an example.

Installation

$ npm install

Building the database from docker

$ docker compose up -d

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About NestJS

Nest Logo

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

Nest framework TypeScript starter repository.

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.