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

https://github.com/nelsonwenner/challenge-trz-node-api

The resident zombie - Backend :rage3:
https://github.com/nelsonwenner/challenge-trz-node-api

docker docker-compose jest nodejs postgres test typeorm typescript

Last synced: 2 months ago
JSON representation

The resident zombie - Backend :rage3:

Awesome Lists containing this project

README

          

TRZ (The resident zombie) - API


GitHub language count


Made by @nelsonwenner

License


Stargazers

## :telescope: Diagram Database


diagram

## :rocket: Technologies

* [Typescript](https://www.typescriptlang.org/)
* [NodeJS](https://nodejs.org/en/)
* [Postgres](www.postgresql.org)
* [TypeOrm](https://typeorm.io/)
* [Docker](https://www.docker.com/)

## :electric_plug: Prerequisites

- [NodeJS LTS (>= 12.x)](https://nodejs.org/)
- [Docker (>= 19.03.x)](https://docs.docker.com/engine/install/ubuntu/)
- [Docker Compose (>= 1.05.x)](https://docs.docker.com/compose/install/)

## :information_source: Getting Started

1. Fork this repository and clone it on your machine.
2. Change the directory to `trz-api` where you cloned it.

## :closed_lock_with_key: Backend Getting Started

```shell
/* Run docker */
$ docker-compose up -d

/* Down docker */
$ docker-compose down
```
* Open backend, the host [localhost:3333](http://localhost:3333)

## :toolbox: Running the tests

```shell
/* Access container of backend */
$ docker exec -it api-container /bin/bash

/* Run test */
$ npm run test:coverage
```

## :spiral_notepad: Swagger

With the server running, access [http://localhost:3333/docs](http://localhost:3333/docs)

## :memo: License
This project is under the MIT license. See the [LICENSE](LICENSE.md) for more information.

---