https://github.com/javadev/graphql-demo
A graphql demo application
https://github.com/javadev/graphql-demo
Last synced: 3 months ago
JSON representation
A graphql demo application
- Host: GitHub
- URL: https://github.com/javadev/graphql-demo
- Owner: javadev
- License: mit
- Created: 2020-09-24T03:58:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T04:00:52.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T08:32:58.496Z (5 months ago)
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-demo
A graphql demo applicationTEST TASK:
------------------------------
we use node.js, graphQL, Apollo Server and Typescript.
Use these technologies to create an application that has two lists:* fruit
* vegetablesFor each of the lists, endpoints must be created to allow:
* displaying the list
* displaying a single list item
* addition
* editing
* component removalAn authorization and authentication mechanism must also be created, including three roles:
* Admin - can do anything
* FruitJohn - can do anything in the list of fruits, while vegetables can only display a list and add new ones
* VegetarianMary - on the list of vegetables can do anything, while fruits can only display the list and add new onesIn case of authentication errors, endpoint should return an error message and the corresponding http status code (e.g. 403)
List data can be saved in any place - database, file, online system, ect.
Also prepare a tool to test your solution, it can be a simple Front (we won't take into account the quality of its code), or instructions on how to do a test in Apollo playground.