Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielbprado/api-programming-course
This API allows user registration and their association with different scenarios. It utilizes Node.js, Express, and SQLite to provide robust functionalities.
https://github.com/gabrielbprado/api-programming-course
crud javascript nodejs
Last synced: about 2 months ago
JSON representation
This API allows user registration and their association with different scenarios. It utilizes Node.js, Express, and SQLite to provide robust functionalities.
- Host: GitHub
- URL: https://github.com/gabrielbprado/api-programming-course
- Owner: Gabrielbprado
- Created: 2024-01-10T20:09:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-22T19:15:29.000Z (10 months ago)
- Last Synced: 2024-03-22T20:29:06.708Z (10 months ago)
- Topics: crud, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 182 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Node.js and SQLite Web API for User and Tables Management
This API allows user registration and their association with different scenarios. It utilizes Node.js, Express, and SQLite to provide robust functionalities.
## Data Model
![Data Model](./Assets/entidades.png)
# How to Use
1. **Install project dependencies:**
```bash
npm install2. **Start to Server:**
```node server.js```3. Access the API at http://localhost:3000
# Available Routes
- `POST /people`: Create a new user.
- `GET /people/:id`: Get details of a specific user.
- `POST /course`: Create a new course.
- `GET /course/:id`: Get details of a specific course.
# Exemplo de Requisição para Criar um Novo Usuário```json
{
"name": "Dine Docente",
"cpf": "80941142078",
"ativo": true,
"role": "docente"
},