This is a web application that helps you manage your clan in Old School RuneScape. Use it with the Clan Members Activity Tracker RuneLite plugin.
These instructions will give you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on deploying the project on a live system.
Requirements for the software and other tools to build, test and push
First, you can install the dependencies by running the following command in the root directory of the project:
npm installThen, create a .env file in the root directory of the project with the following content. Do not use these passwords in production!
Tip
If you were to set the variables to build a production Docker image, you would need to set the postgres and redis URLs to postgres and redis respectively (the services names), as well as use the internal ports since the containers would run on the same Docker network.
PORT=5000
SESSION_SECRET=some-secure-password-789
GOOGLE_CLIENT_ID=your-google-client-id
POSTGRES_URL=localhost
POSTGRES_PORT=5001
POSTGRES_USER=postgres
POSTGRES_PASSWORD=some-secure-password-123
POSTGRES_DB=clan-halls
POSTGRES_TEST_DB=clan-halls-test
REDIS_URL=localhost
REDIS_PORT=5002
REDIS_PASSWORD=some-secure-password-456
VITE_GOOGLE_CLIENT_ID=your-google-client-id
VITE_API_BASE_URL=http://localhost:5000To start the development environment, you can simply run the following command:
# Windows only
/scripts/dev.ps1
# Unix script (not yet implemented)
/scripts/dev.shTo start the production environment, you can simply run the following command:
# Windows only (not yet implemented)
/scripts/prod.ps1
# Unix script (not yet implemented)
/scripts/prod.shAlternatively, you can run the following command to start the development containers:
docker compose up -f docker-compose.dev.ymlAnd run the following command to start the backend server:
npm run dev -w backendThen run the following command to apply migrations:
npm run migrate -w backendFinally, run the following command to start the frontend server:
npm run dev -w frontendPlease refer to the backend's README for more information on scripts.