Skip to content

Commit 110a8bc

Browse files
committed
Update README.md and .env.example: correct database type to MongoDB and simplify database setup instructions
1 parent 00e32e6 commit 110a8bc

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

backend/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ MONGODB_URI=mongodb://localhost:27017/github-value
1818

1919
# Webhook proxy URL (optional)
2020
# This is only needed if you don't want to use smee.io
21-
# WEBHOOK_PROXY_URL=https://5950-2601-589-4885-e850-b1eb-a754-b856-6038.ngrok-free.app
21+
# WEBHOOK_PROXY_URL=https://5950-2601-589-4885-e850-b1eb-a754-b856-6038.ngrok-free.app

backend/README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ npm run dev
99
```
1010

1111
## Database
12-
The backend uses a MySQL database to store data.
12+
The backend uses a MongoDB database to store data.
1313

1414
You can run the docker compose file to start the database. Just shutdown the backend server so you can free up the port.
15-
16-
You can also run it manually:
1715
```bash
18-
docker run -d \
19-
--name db \
20-
--restart always \
21-
-e MYSQL_PASSWORD=octocat \
22-
-e MYSQL_DATABASE=value \
23-
-p 3306:3306 \
24-
-v db:/var/lib/mysql \
25-
-v ./db/init.sql:/docker-entrypoint-initdb.d/init.sql \
26-
mysql
16+
docker-compose up -d mongo
2717
```
2818

2919
## API Endpoints

0 commit comments

Comments
 (0)