For this week's assignment we will create a web applications that generates a screenshot of a website based on a url. We will combine two API's one to generate the screenshot and one to allow the user to save the screenshot.
We use Rapid API to generate a screenshot and the crudcrud API to save the screenshot.
Technical specifications.
- User can enter a URL for a website and it will send back a screenshot of the website using the website-screenshot API
- User can hit a button to save the screenshot. It will then save the screenshot and the URL as a resource on crudcrud
- User can get a list of all screenshots that they have saved
- User can delete a screenshot that they have saved
- Create another resource called users which takes in an email and password. Create one user.
- Get back a list of users
- First show a login form
- If the email and password matches the one user we created we show the applications else we show an error message.
Extra
- Create another user
- When saving a screenshot also save the user email(or another unique identifier)
- Make sure we are only showing screenshots that the user that is logged in has uploaded
Keep in mind the API key for the website-screenshot and the uuid for crudcrud should be in a secret.js file which is not committed to git