Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jrsousadev/seven-inc
- Owner: jrsousadev
- Created: 2022-09-09T21:38:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T17:27:41.000Z (over 2 years ago)
- Last Synced: 2023-03-04T15:49:39.724Z (almost 2 years ago)
- Topics: challenge, express, nodejs, postgress, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/
```