Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.49 KB

File metadata and controls

46 lines (34 loc) · 1.49 KB

KnowMe

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!

  • Learn more about the client side here.
  • Learn more about the emailing service here.

Requirements

  • npm (Node Package Manager) latest version
  • MongoDB - Community server
  • RabbitMQ - download/tutorial
  • Mailtrap API - link

Database Setup

  • 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()

RabbitMQ Setup

  • 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.

Web App Setup

  • 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