Simple Local User Authorization and Registration
For this mini app, I want to use Mongoose to create a collection, insert, delete, find and update documents in it. This is my first go with mongoose, I have a little experience with using mongodb
module though.
- User can create a new account and login.
- User can update their information.
- User can delete their account.
I will be using express, pug, body-parser, cookie-parser and mongoose. I will use cookies to make a simple local session for the user.
- Express (Web-Framework)
- Pug (View Engine)
- Body-Parser (To read form inputs)
- Cookie-Parser (To control cookies! yummy!)
- Mongoose (To connect to mongodb)
- W3CSS (To Look Pretty)
- Jquery (For AJAX)
Simple form page for user to register new account.
The login page will be a simple form with a post method pointing to /login
.
A special place only ones with the key can get into.
Dashboard page loads current user information and lets the user update and save it.
The user can logout of the session
User can choose to remove all information from the database.