Skip to content

Backend express server for Cfe app. Handling routing for both the client frontend and the frontend dashboard. Connecting to a Mongo DB.

Notifications You must be signed in to change notification settings

dan-gentile/coffee-app-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coffee-app-backend

Server for Cfe

Contents Last-Commit

Table of contents

General info

This server is built to serve both the Cfe admin dashboard and the Cfe client web application. It manages the MongoDB database used by both apps, which is hosted on Atlas and controlled via Mongoose. Mongoose gave us the ability to build associations between a few of our collections, while taking advantage of the horizontal scalability of MongoDB. It also handles user verification for both apps, using jsonwebtoken for the dashboard admin accounts, and google-auth-library for the client accounts. Our admin passwords are salted and hashed using bcrypt. For all routes that have the potential to create, update, or destroy data the server authenticates the user on each call to protect our database. We draw on the data gathered by Google to populate basic information about each of our cafes via the Google Places API. As both applications are built with React and are hosted separately, this server serves only json data.

To checkout the other repos associated with this app check out these links:

This server is deployed on Heroku

Tech-Breakdown

  • MERN stack
  • Google Places API for searching and gathering data about cafes
  • Axios for API calls
  • Mongoose for interacting with our MongoDB database
  • Atlas for hosting our MongoDB database
  • bcrypt for salting and hashing our passwords
  • google-auth-library for authenticating our OAuth Google Sign In users
  • jsonwebtoken for authenticating our admin users
  • Morgan for logging
  • Cors for allowing requests from our separately hosted front ends

Technologies

Project is created with: ​

Contributing

We are currently not seeking contributions at this time.

Questions

If you have any questions or problems with the app please create an issue.

Authors

About

Backend express server for Cfe app. Handling routing for both the client frontend and the frontend dashboard. Connecting to a Mongo DB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •