Skip to content

Commit 4ec5da0

Browse files
committed
(#2)
1 parent e6c7c55 commit 4ec5da0

File tree

7 files changed

+1074
-1
lines changed

7 files changed

+1074
-1
lines changed

.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {
2+
$env:DB_PASSWORD=link=(url: https://www.mongodb.com/cloud/atlas/hd+pw0012);
3+
}
4+
5+
PORT=3000
6+
DB_NAME=todolist
7+
DB_USER=admin
8+
DB_PASSWORD=link

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file tells git which files or directories to ignore when committing or pushing to a repository.
2+
3+
# Node.js
4+
node_modules
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# Editors
14+
.vscode
15+
.idea
16+
17+
# OS generated files
18+
Thumbs.db
19+
.DS_Store
20+
21+
# Local env files
22+
(nothing)
23+
24+

config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import dotenv from 'dotenv';
2+
dotenv.config();
3+
4+
export const config = {
5+
port: process.env.PORT,
6+
db: {
7+
name: process.env.DB_NAME,
8+
user: process.env.DB_USER,
9+
password: process.env.DB_PASSWORD
10+
}
11+
};

0 commit comments

Comments
 (0)