Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jour09 #5

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions designs/css/main.css → backend/designs/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ body {

.main {
flex: 1;
padding:0px auto 20px;
}

.bg-dark {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
90 changes: 55 additions & 35 deletions package-lock.json → backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json → backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"mongoose": "^5.9.21",
"sass": "^1.69.5",
"swagger-ui-express": "^4.1.4",
"yamljs": "^0.3.0"
},
Expand Down
13 changes: 13 additions & 0 deletions backend/server/database/connection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const mongoose = require("mongoose");
const databaseUrl =
process.env.DATABASE_URL ||"mongodb://127.0.0.1/argentBankDB";

module.exports = async () => {
try {
await mongoose.connect(databaseUrl, { useNewUrlParser: true, useUnifiedTopology: true });
console.log("Database successfully connected");
} catch (error) {
console.error(`Database Connectivity Error: ${error}`);
throw new Error(error);
}
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading