Skip to content

Repository files navigation

Description

API full REST built with Nest

The idea is to manage multiple functionalities against different personal projects to apply the best practices in backend (SOLID, DRY, etc)

Project setup

$ npm install

Compile and run the project

# development
$ docker compose -f ./docker-compose.dev.yml up

If you want to develop full local you can change

MONGO_DB_CLUSTER_URL=mongodb://mongodb-hz-api:27017/hs-server-api
MONGO_DB_CLUSTER_URL=mongodb://127.0.0.1:27017/hs-server-api 

in this way, you can run the mongodb service and to be recognized by the local machine

Run hz-server-api / mongodb database with Docker Compose

URL generated by the mongodb container

http://localhost:3001/api/tasks

Swagger API Docs

Use the following url in local to access swagger docs

http://localhost:3001/api/docs#/

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Run Headless Pup

1- Abrir consola y pegar

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=$(mktemp -d -t 'chrome-remote_data_dir')

1.1 - Obtener link 'ws://...//' del output del comando y pegar en CHROME_NAV_REMOTE_ENDPOINT

2- ir a linkedin y loguearse y no cerrar ventana

3- ejecutar api

Observability and monitoring

Grafana

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages