This is my full stack web development project KnowMe! The backend to this project exists in this directory. This project allows for user authentication with jsonWebTokens and an emailing service for sending confirmation emails to newly registered users. Feedback is much appreciated!
- npm (Node Package Manager) latest version
- MongoDB - Community server
- RabbitMQ - download/tutorial
- Mailtrap API - link
- in your computer's root directory:
sudo mkdir data/db
- give ownership of directory to self:
sudo chown -R $USER data/db
- start mongod:
mongod --dbpath data/db
- start mongo in seperate window:
mongo
- run inside instance:
use knowme
db.createUser({
user: "admin",
pwd: "admin",
roles: [{ role: "readWrite", db: "knowme" }]
})
quit()
- start RabbitMQ server:
rabbitmq-server
The recievers are automatically intialized for you once you run the web app.
The /emaliling folder has the more details on setting up mailtrap. Click here.
- clone repo:
git clone https://github.com/AbrahamLara/KnowMe.git
- install server dependencies:
npm install
- install emailing dependencies:
npm emailing-install
- install client dependencies:
npm client-install
- run web app:
npm run dev