Peshka564/RegistrationForm
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Features:
- Registration/Login/Logout
- Authentication via cookies and session tokens
- Email validation
- Name change
Frontend - Vanilla JS, HTML, CSS
Backend - Node.js WITHOUT Express
Database - Mysql
Used NPM packages:
- bcryptjs - for password hashing
- dotenv - for securing sensitive information
- googleapis - for enabling oauth2 authentication and sending gmail
- mysql2 - for making queries to mysql database
- nodemailer - for sending emails
- uuid - for generating user and session ids
File structure:
├── client - front end
│ ├── home.js, home.html - main page files
│ ├── form.css - for styling
│ ├── loginForm.js, loginForm.html - login page files
│ ├── registrationForm.html, registrationForm.js - registration page files
├── staticFileServe.js - function for serving all the needed static files
├── server.js - main server and api routes
├── emailTemplate.js - validation email html template
├── emailSender.js - for oauth2 authentication and initialising transport
├── db.js - for connecting to database
├── package.json
├── package-lock.json
└── .gitignore