Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jrsousadev/seven-inc

👨🏻‍💻 System Back-end Server with Express, Node, Prisma and Postgress
https://github.com/jrsousadev/seven-inc

challenge express nodejs postgress prisma typescript

Last synced: about 2 months ago
JSON representation

👨🏻‍💻 System Back-end Server with Express, Node, Prisma and Postgress

Awesome Lists containing this project

README

        

## đź“‹ Seven INC

API Desenvolvida com o intuito de gerenciar funcionários! (Challenge Seven)

## O que foi utilizado no projeto:

- [x] Typescript
- [x] Express
- [x] Postgress
- [x] Prisma
- [x] Nodejs

### Regras de negĂłcio:

- [x] Cadastrar funcionário
- [x] Editar funcionário
- [x] Deletar funcionário
- [x] Listar funcionário
- [x] Listar todos os funcionários

### Endpoints:

- [x] [POST] "/employee"
- [x] [PUT] "/employee/:id"
- [x] [DELETE] "/employee/:id"
- [x] [GET] "/employee/:id"
- [x] [GET] "/employee"

### Project architecture

```
.
├── src/
│ └── database
| └── environments
| └── modules
| └── Employeee
| └── Controllers
| └── Services
| └── repositories
| └── shared
| └── containers
| └── errors
| └── routes
| └── utils
└── ...
```

### Exemplo API (Criar funcionário)

![image](https://user-images.githubusercontent.com/92350736/189468078-6a5689d6-63a9-48c9-a825-4599621299ce.png)

### Iniciando o Projeto

** Clone o repositĂłrio e instale as dependĂŞncias.
```sh
# install dependencies
> yarn
# or
> yarn install

# copy .env file
> cp .env.example .env

# Generating the migration
> yarn prisma migrate dev

# start project
> yarn dev

# open in
http://localhost:9000/
```