Hi! We're really excited that you're interested in contributing! Before submitting your contribution, please read through the following guide.
- Bug fixes and changes discussed in the existing issues are always welcome.
- For new ideas, please open an issue to discuss them before sending a PR.
- Make sure your PR passes
npm test
and has appropriate commit messages.
In order to run the Globalping Auth locally you will need Node.js 20 and Redis with RedisJSON module and MariaDB. All of them are included in docker-compose.yml file of the main Globalping repository.
You can run the project by following these steps:
- Clone this repository.
npm install
- Run
npm run start:dev
PORT=13110
environment variable can start the API on another port (default is 13110)
A single command to run everything: npm test
To run a specific linter or a test suite, please see the scripts section of package.json.
Most IDEs have plugins integrating the used linter (eslint), including support for automated fixes on save.
ELASTIC_APM_SERVER_URL={value}
used in production to send APM metrics to elasticELASTIC_APM_SECRET_TOKEN={value}
used in production to send APM metrics to elasticELASTIC_SEARCH_URL={value}
used in production to send logs to elasticSERVER_SESSION_COOKIE_SECRET={value}
used to read the shared session cookieREDIS_URL
used in production to set the redis URL including credentialsDB_CONNECTION_HOST
,DB_CONNECTION_USER
,DB_CONNECTION_PASSWORD
, andDB_CONNECTION_DATABASE
database connection details