Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henriquestocco/graphql-adventures
Learning how to work graphql apis
https://github.com/henriquestocco/graphql-adventures
Last synced: 24 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 (28 days ago)
- Default Branch: main
- Last Pushed: 2024-11-27T22:44:54.000Z (28 days ago)
- Last Synced: 2024-11-27T23:23:39.427Z (28 days ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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
```