Simple-Register is a simple project that I created as an example to my bro Endizera.
This project basically contains:
- Mailtrap as a mailer to safe e-mail testing for staging and development
- RFC-7807 (problem detail) to format response errors
- MongoDB as a principal database
- Simple flux to register a user, authenticate, reset the password, and view the last change of password utilizing token generated by authenticating route
- Express
- Mongoose
- To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Git CLI
git clone https://github.com/zevolution/simple-register.git
# Github CLI
gh repo clone zevolution/simple-register- Install NPM Packages
npm install- Configure the environment properties. The settings below must be added in a
.envfile.
# MongoDB Configurations
SR_MONGO_URL=
# MailTrap Configurations
SR_MAIL_HOST=
SR_MAIL_PORT=
SR_MAIL_USER=
SR_MAIL_PASSWORD=
SR_MAIL_SENDER=Use the package manager npm to run Simple-Register.
npm run devYou can use MongoAtlas as a cloud database service. They provide a free database in a shared cluster of up to 512MB.
You can import simple-register-api-insomnia.json to use the API.
This project was created using node version 10.16.0.