Skip to content

Commit b629812

Browse files
authored
Merge pull request #2 from Pathokun/optional-database
Optional database (MongoDB)
2 parents 51b6dd3 + 3ee3ec1 commit b629812

File tree

12 files changed

+312
-948
lines changed

12 files changed

+312
-948
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"@routes": "./src/routes/",
1010
"@db": "./master/db/",
1111
"@views": "./src/views/",
12-
"@middlewares": "./src/middlewares/"
12+
"@middlewares": "./src/middlewares/",
13+
"@utils": "./src/utils/"
1314
}
1415
}
1516
]

.env.example

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
SECRET_KEY=secret
1+
// NEED TO YOUR MONGODB CONNECT STRING
2+
DB_STRING = mongodb+srv://admin:admin@project-a.cedzn.mongodb.net/pathokun?retryWrites=true&w=majority
3+
4+
// YOUR COLLECTION NAME
5+
DB_COLLECTION = noname
6+
7+
// YOUR DATABASE NAME
8+
DB_NAME = developing
9+
10+
// YOUR SECRET KEY FOR SIGN TOKEN
11+
SECRET_KEY = HELLOWORLD

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ master/db
88

99
dist
1010

11+
package-lock.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Give a ⭐️ if this project helped you! or buy me a 🍺
110110

111111
## License
112112
[MIT](https://choosealicense.com/licenses/MIT/)
113-
113+
114114
## Sponsors
115115

116116
<span>

0 commit comments

Comments
 (0)