Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielhdezller/weather-sensor

This is a showcase Nestjs project with Docker, PostgreSQL, REST and Jest.
https://github.com/danielhdezller/weather-sensor

backend docker docker-compose jest nestjs postgresql rest-api

Last synced: 1 day ago
JSON representation

This is a showcase Nestjs project with Docker, PostgreSQL, REST and Jest.

Awesome Lists containing this project

README

        

# weather-sensor

To try the authenticated endpoints first login with the user:
email: '[email protected]',
password: 'pass',
Then paste the "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX..." at authentication header Bearer Token.

## Steps to run the project:

- if you haven't already: copy `.env.example` to `.env` at the project folder level.

```bash
$ cd ./docker/project
# Db and application will start, at mac the first time it takes some time due to the copy of the volumes.
$ docker-compose up
```

## Swagger:

After running it you can find the Swagger documentation at: http://localhost:3000/docs#/

![Alt text](image.png)

## Steps to run the Tests:

- if you haven't already: copy `.env.example` to `.env` at the project folder level.

```bash
$ cd ./docker/test-db
# The Db for testing proposes will start.
$ docker-compose up
# To return to the project folder.
$ cd ../../project
# To run the test.
$ yarn test
```

## Stay in touch

- Author - [Daniel Hernández](https://github.com/danielhdezller)
- LinkedIn - [LinkedIn](https://www.linkedin.com/in/daniel-hernandez-ller/)