You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,17 @@ Hi! We're really excited that you're interested in contributing! Before submitti
10
10
11
11
## Project setup
12
12
13
-
In order to run the Globalping API locally you will need Node.js 20 and Redis with [RedisJSON](https://oss.redis.com/redisjson/) module and MariaDB. All of them are included in docker-compose.yml file. You will also need to run a development instance of the [Globalping Probe](https://github.com/jsdelivr/globalping-probe) at the same time when testing.
13
+
In order to run the Globalping API locally you will need Node.js 20 and Redis with [RedisJSON](https://oss.redis.com/redisjson/) module and MariaDB. All of them are included in docker-compose.dev.yml file. You will also need to run a development instance of the [Globalping Probe](https://github.com/jsdelivr/globalping-probe) at the same time when testing.
14
14
15
15
The API uses 3000 port by default. This can be overridden by `PORT` environment variable.
16
16
17
17
You can run the project by following these steps:
18
18
19
19
1. Clone this repository.
20
-
2.`docker-compose up -d` - Run Redis and MariaDB
21
-
3.`npm install && npm run download:files`
22
-
4. Run `npm run start:dev`
20
+
2.[Enable host networking in Docker Desktop](https://docs.docker.com/engine/network/drivers/host/#docker-desktop) if you haven't already.
21
+
3.`docker compose -f docker-compose.dev.yml up -d` - Run Redis and MariaDB
22
+
4.`npm install && npm run download:files`
23
+
5. Run `npm run start:dev`
23
24
24
25
Once the API is live, you can spin up a probe instance by running as described at https://github.com/jsdelivr/globalping-probe/blob/master/CONTRIBUTING.md.
25
26
@@ -48,3 +49,4 @@ Most IDEs have plugins integrating the used linter (eslint), including support f
48
49
-`SYSTEM_API_KEY={value}` used for integration with the dashboard
49
50
-`SERVER_SESSION_COOKIE_SECRET={value}` used to read the shared session cookie
50
51
-`DB_CONNECTION_HOST`, `DB_CONNECTION_USER`, `DB_CONNECTION_PASSWORD`, and `DB_CONNECTION_DATABASE` database connection details
0 commit comments