https://github.com/henriquestocco/graphql-adventures
Learning how to work graphql apis
https://github.com/henriquestocco/graphql-adventures
Last synced: 10 days ago
JSON representation
Learning how to work graphql apis
- Host: GitHub
- URL: https://github.com/henriquestocco/graphql-adventures
- Owner: HenriqueStocco
- Created: 2024-11-27T22:18:25.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-30T10:43:27.000Z (7 months ago)
- Last Synced: 2025-06-25T05:06:10.907Z (10 days ago)
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Adventures
Learning how to work graphql apis building a note block (Full CRUD) + User session with JWT + Password hash- Principes
- Basic
- Running server
- Using with a database## Techs
TypeORM + Postgres container (Docker)
GraphQL / Apollo Server
Hono API(or Fastify) - as HTTP Server provider## Routes
#### NOTES**GET** -> /notes
**GET** -> /notes/:noteId
**POST** -> /notes/create
**PUT** -> /notes/update
**PATCH** -> /notes/:noteId/title
**PATCH** -> /notes/:noteId/description
**DELETE** -> /notes/all
**DELETE** -> /notes/:noteId
#### USERS
**POST** -> /register
**POST** -> /login
**GET** -> /logout## Structure
```bash|-- src/
| |-- database/
| |-- graphql/
| |-- router/
| |-- middlewares/
| |-- server.ts
```