In this quest, we will implement the ability to dynamically generate user avatars. The user's main responsibility is to produce an image, either using information provided by the user or totally random, convert it to a data URL, and then put the data URL in the database.
Describe each step in the quest.
- Step 1 [intro_dynamicon_smith]:
- Step 2 [create_utils_dir_dynamicon_smith]:
- Step 3 [create_utility_function_dynamicon_smith]:
- Step 4 [send_set_user_avatar_in_db_dynamicon_smith]:
For each step, describe all actions the user needs to perform to complete the step, including links to PRs as they would need to be written to pass checks. Before submitting your quest for review, test your quest in snack and check the instructions you wrote. Make sure that by following these instructions, you are able to successfully complete the quest.
- Learning Objective: for little bit of communication
- Narrative: lucca greets player, and introduced about the feature to implement
- Instructions:
- How do users pass to the next step: just send done message to lucca
- Hints:
- Learning Objective: learning about canvas API
- Narrative: Team manager A gives overview about how we are going implement this new feature
- Instructions: read more about canvas
- How do users pass to the next step: just send done message to lucca
- Hints:
- Learning Objective: how can we convert canvas into dataURL, what is base64.
- Narrative:
- Instructions:
- Make a utils folder inside
backend/
- name of the file is getUserAvatar.js.
- Open a PR
- Make a utils folder inside
- How do users pass to the next step: user have to open PR, (PR link)
- Hints:
- you can create image by using canvas
- "you can user this canvas liabrary, this includes a canvas implementation for Node.js"
- Learning Objective: storing image url in database.
- Instructions:
- change the sign up POST request handler method
- Store this dataURL in the database
- Open a PR
- How do users pass to the next step: user have to open PR, (link)
- Hints:
- storing image url in database.