0 of 1 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 1 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
In continuation with this module’s homework, your task is to build a form for a user to input data and persist that data into a Car-Collection Database Table Called “user”.
You will need to create the following:
Inside of the blueprint folder for “authentication” (assuming the name is “authentication”):
– 1 routes: One for “signup”
– 1 User Model with the basic infomation listed:
– ID
– First_name
– Last_name
– email
– password
– token
– date_created
– 1 Form with the following information:
– email
– password
– submit_button
– 1 .env file: to add your DATABASE_URL
Note: You may add more to your Form/Model if you would like, but the min is listed above.
So by the end of the homework for tonight you should have:
– A Database Called “car-collection” (Create this inside of Elephant SQL)
– A Database Table called “user”
– A form that can be placed on your HTML for signup
– Data in the user table given to your database by the user form
HINT: You will need to add the following dependencies to your virtual environment
– pip install Flask-WTF
– pip install Flask-Migrate
– pip install psycopg2
– pip install psycopg2-binary — For those on mac machines
– pip install email-validator — Verification of emails inside of forms
– pip install python-dotenv
https://www.youtube.com/playlist?list=PL-osiE80TeTs4UjLw5MM6OjgkjFeUxCYH
https://flask-migrate.readthedocs.io/en/latest/
https://github.com/CodingTemple/flask-walkthrough-reference-code/tree/day-2
https://flask-sqlalchemy.palletsprojects.com/en/2.x/
https://github.com/brandon-apol/my-phonebook-ct-main/tree/master
This response will be reviewed and graded after submission.