Pedagogical project for Efrei Paris to learn GraphQL.
The purpose of this challenge is to learn GraphQL through the creation of an API. I use TypeScript
The story is simple, I'm a Freelance and I want to recreate a Facebook like for a client. For this I will need to implement an API that respect the following specifications.
- Register
- Create a post
- Read all the posts
- Read a post by It's ID
- Update a post by It's ID
- Delete a post by It's ID
- Create a comment on a post
- Read all the comments from a post
- Read a comment by It's ID
- Read a comment by It's ID
- Delete a comment by It's ID
For exemple in GraphQL :
model User id: int ( or string if you use UUID ) firstName: string lastName: string email: string password: string
model Post id: int author: User comments: Post[] content: string
I use this ressources for this project
- GraphQL Doc, I find here explanation about GraphQL.
- Appolo Serveer, Apollo Server is a npm package that help me bootstrap a GraphQL Server.
npm install
node index.js
- Paul COLLAS
MIT