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

Add api usage example #3

Open
joegregory-cbe opened this issue Mar 31, 2023 · 1 comment
Open

Add api usage example #3

joegregory-cbe opened this issue Mar 31, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@joegregory-cbe
Copy link
Contributor

Add an Example with the following criterias:

  • How to create a new cv document
  • Load the last cv document automatically when revisiting the generator again
@joegregory-cbe
Copy link
Contributor Author

joegregory-cbe commented Mar 31, 2023

Please checkout the source code, it's more a inspiration how you could solve the creation flow. The example follows the flow below

  • When the user clicks the "Create CV now!" link on the landingpage
    • Then the user gets redirected to the page /documents
  • On the /documents page there is a check
    • When there a document id stored in the localstorage from a previous session?
      • Then ask the user if likes to continue or to create a new cv
    • Else
      • Create a new document on the api server and redirect the user to the DocumentEdit page with the generated id from the api response
  • When the user hits the document edit page and the data was fetched successfully the document id gets written into the localstorage

See here https://github.com/coding-bootcamps-eu/23-january-final-project/tree/3-add-api-usage-example/src

@joegregory-cbe joegregory-cbe added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants