Skip to content

Commit b44cc43

Browse files
authored
Merge pull request #63 from prakasa1904/ignore-unused
fix: simplify dev and ignore unused files from repo
2 parents 2d58872 + 5bcfa8b commit b44cc43

9 files changed

Lines changed: 36 additions & 6 deletions

File tree

File renamed without changes.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
public/uploads/
3+
logs/
4+
5+
# ignore real env from repo
6+
.env

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@ Masuk ke direktori project:
8181
cd streamflow
8282
```
8383

84-
Install dependencies:
84+
Setup environment:
8585
```bash
86-
npm install
86+
./scripts/init.sh
8787
```
8888

89-
Generate session secret:
89+
Konfigurasi port (opsional):
9090
```bash
91-
npm run generate-secret
91+
nano .env
9292
```
9393

94-
Konfigurasi port (opsional):
94+
Run application:
9595
```bash
96-
nano .env
96+
npm run dev
9797
```
9898

9999
### 3. Konfigurasi Firewall

db/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sessions.db

db/streamflow.db

0 Bytes
Binary file not shown.

logs/app.log

Whitespace-only changes.

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@
3535
},
3636
"devDependencies": {
3737
"nodemon": "^3.0.1"
38+
},
39+
"engines": {
40+
"node": ">=18.19.0 <21.0.0"
3841
}
3942
}

scripts/init.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
npm i
4+
cp .env.example .env
5+
npm run generate-secret

0 commit comments

Comments
 (0)