- Clone the project.
- Run
npm install
- Create Data Base call
petition
- Create tables running file
setup.sql
- Create a
secret.json
file.
{
"USER_NAME": "",
"USER_PASSWORD": "",
"COOKIE_SECRET": ""
}
Now run the server:
node server
Open http://localhost:8080 with your browser to see the result.
The purpose of this project was to create an online petition where supporters can register for the petition, log in, update their profile information, provide their signature for the cause, redo their signature if needed, and view a list of who else signed thus far (sorted by location).
This particular petition advocates for more latin product in german supermarkets.
- Registration and login.
- Hashed passwords using bcrypt.
- User can update their profile at any time saving the latest information in the database and rendering the updated information immediately.
- Users are able to redo their signatures.
- Users are able to sort list of supporters by city as well as access their provided url websites, if available, by clicking on any name.
- Users are able to change their password.
- Users are able to delete their accounts.