Skip to content
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

KN FULLSTACK - first task #2

Open
Siemko opened this issue Nov 26, 2019 · 1 comment
Open

KN FULLSTACK - first task #2

Siemko opened this issue Nov 26, 2019 · 1 comment
Labels
FULLSTACK Issue for KN Fullstack good first issue Good for newcomers

Comments

@Siemko
Copy link
Member

Siemko commented Nov 26, 2019

Hi there, Fullstack members!

FIRST TASK

As you can see the project is in its first phase. We need your help with backend this time.

Your task is to create USER ROLES:

Create three roles: USER, ADMIN, MODERATOR, save role in user document in DB and prepare guard for graphql queries and mutations (access to query/mutation if user has selected role(s)).

We will check if your code works, meets requirements and is clean.

TIME LIMIT

You have time to complete task until 20.12.2019, 20:00 (GMT+1)


INSTRUCTION FOR BEGINNERS

If you have any problems with task, check out following step-by-step instruction:

Before starting fork the repo as stated in docs

  1. Create enum with ROLES.
  2. Register that enum in GraphQL: docs
  3. Add appropriate fields in user schema, modify UsersService.
  4. Create guard (you can check both NestJS docs and existing AuthGuard).
  5. Show usage of Guard in one query/mutation.

After finishing the task, create merge request as in docs

ANY QUESTIONS?

You can ask your question related to task in this issue or on Fullstack+ Facebook Group.

@Siemko Siemko added FULLSTACK Issue for KN Fullstack good first issue Good for newcomers labels Nov 26, 2019
@Siemko
Copy link
Member Author

Siemko commented Nov 26, 2019

Please name your branch: user-roles-<your_name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FULLSTACK Issue for KN Fullstack good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant