Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Database Connection #19

Merged
2 commits merged into from
Nov 10, 2023
Merged

Database Connection #19

2 commits merged into from
Nov 10, 2023

Conversation

gtaEPIC
Copy link
Owner

@gtaEPIC gtaEPIC commented Nov 10, 2023

Using the mongoose library, the application will connect to a mongoDB server provided in the .env

⚠️ DATABASE SETUP ⚠️

The database library is mongoose.
You will need to create a .env file in the root directory.
Inside this file you should have the following variables:

ATLASDB=<your atlas db connection string>

If you do not include this, your program will not work.
Do not surround with ", just use the text and make sure the password is correct.

Test on your machine

To test on your machine, on github desktop you can checkout the branch config-folder-creation or by command line

git fetch origin config-folder-creation
git checkout config-folder-creation

Then run

npm i
npm start

Closes #3

imirza7 and others added 2 commits November 10, 2023 01:16
Also updated the README to show how to get working
@gtaEPIC gtaEPIC added the REQUIRED Required for submission label Nov 10, 2023
@gtaEPIC gtaEPIC added this to the Backend milestone Nov 10, 2023
Copy link

gitguardian bot commented Nov 10, 2023

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
8737579 MongoDB Credentials 4267587 config/db.js View secret
8737579 MongoDB Credentials b9175c2 config/db.js View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@gtaEPIC gtaEPIC enabled auto-merge November 10, 2023 06:45
@gtaEPIC gtaEPIC closed this pull request by merging all changes into main in a214958 Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
REQUIRED Required for submission
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Database Connection
3 participants