This is a login page of user authentication
-
Input the email and password and will find if the data-base has this user-info or not.
-
If the user-info doesn't exist, it will show the warning in the page
-
Can keep the user login and can logout
- Express @4.18.2
- Express-handleBars @6.0.6
- Node.js
- Mongoose @6.7.4
- [email protected]
- [email protected]
-
Confirm you have already install the npm and node.js
-
Clone this repository
https://github.com/wenliangsu/user_authentication.git
-
Set the MongoDB connection
MONGODB_URI=mongodb+srv://<Your MongoDB Account>:<Your MongoDB Password>@cluster0.xxxx.xxxx.net/<Your MongoDB Table><?retryWrites=true&w=majority
-
Then type the command as following:
npm run seed
npm run dev
-
You will see the message, and copy it into your browser.
Express is listening on localhost:3000
This project is from the Alphacamp class