Skip to content

Getting Started with Database Development: Connection and Setup

Leila Moran edited this page Nov 4, 2021 · 2 revisions

Getting Started with Database Development

Connection

STEP 1) Make an account on Mongo Cloud Atlas

Screen Shot 2021-09-19 at 5 25 04 PM

STEP 2) Make a Database and grab the credentials by clicking on connect

Screen Shot 2021-09-19 at 5 25 04 PM

STEP 3) Change the connection string in the following files:

docker-compose.yml: DB=YOUR CONNECTION STRING

start_server.sh: export DB=YOUR CONNECTION STRING

Database Setup

These images show how we set up our database in MongoDB.

Collections setup

Note that user_projects is NOT used in any files as of yet.

Products collection

This image shows the entry fields of a product.

Product -- further details

users collection.

Note that the password encryption is the result of bcrypt. It's not recommended to add entries here manually--instead, launch the app (see README) and sign up as a new user.