Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```