Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirements Step 1 To begin, generate a new project (within the Express-Course directory) using the Express/Handlebar generator. Call this app L07HandsOn Don't forget all of

Requirements Step 1 To begin, generate a new project (within the Express-Course directory) using the Express/Handlebar generator. Call this app L07HandsOn Don't forget all of the installations needed! Step 2 Create a new model and table, users, by running a migration that includes the following columns: Userld, FirstName, LastName, Email, Username, Password, Admin Tip! . Don't forget to create the users model o The createdAt and updatedAt columns will be created automatically The Admin column should be a boolean with a default value of false. To update users to be an admin, update them within MySQL Workbench itself. You need at least one user in your users table that is an Admin. To check if a user is an admin in your express routes you can use user.admin. Step 3 Add the routes of the following: User signup: /users/signup User login: /users/login Show user profile: /users/profile Show a list of users: /users Show a specific user: /users/:id

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions