-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new React frontend challenge #39
base: master
Are you sure you want to change the base?
Conversation
json formatting for example json
3. Delete a project | ||
4. Display all projects | ||
5. Create a new task for an existing project with a project_id, name, description and status. The status is set to OPEN by default. | ||
6. Edit name, description and status of a task |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are two separate functionalities - edit the name & description (most likely in some kind of edit dialog) and change the status (drag & drop in a Kanban board).
|
||
## What has already been implemented for you ✅ | ||
|
||
The backend uses Hasura to create an API, Postgres as a database, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add an architecture diagram to visualize this.
GraphQL for the requests and Cloudflare workers to generate JWTs (https://jwt.io/introduction) needed for authorization. | ||
|
||
|
||
Each project is exclusively mapped to a single user through their email-address. By that, the respective tasks are restricted to the creator of the project as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment that therefore, users cannot access tasks of other users.
This token has to be included in the request header of each GraphQL query/mutation. Else, access will be denied. 😈 | ||
|
||
The requests have to be sent to this URL: https://react-challenge.deploy.selectcode.dev/v1/graphql. | ||
One of the header titles of each request must be set to "Authorization" and the value to "Bearer < JWT > ". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the example for test@selectcode.de.
|
||
export default { | ||
|
||
async fetch(request: Request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add more documentation - how does an example JWT look at the end? How is the format of the input parameter?
Added cloudflare worker for creating jwt's for future react frontend challenge.