/express-mongo-backend

An Express backend server application with MongoDB hosted database. This allows users to signup/login (with or without Facebook Account) into the application and read/update/comment on any Asian street food.

Primary LanguageJavaScript

express-mongo-backend

Run with Docker Container

docker-compose up

Run Manually without Container

start Mongo

mongod --dbpath=data --bind_ip 127.0.0.1

MongoDB server will run on localhost:27017

Install dependencies

nvm install

Run node application

nvm start

Application will run on https://localhost:3443

Technology Used:

  • Developed Express backend server with SSL protocols, allows client-server communications in a secure channel
  • Implemented CORS with Preflight approach to improve the security of backend modifications on NoSQL models stored in MongoDB
  • Implemented JWT and integration of OAuth2 with Facebook Passport for account authentication
  • Containerized with Docker and could be deployed to a load-balanced Kubernetes cluster using AWS

Backend System Structure Diagram:

Structure Diagram (Express-Mongo) (1)