A web application to track and manage Tchoukball statistics.
- Certificates: Required for secure connections. Please contact the developers to obtain them.
- Node.js & npm: Required for running the frontend locally.
- Go: Required for running the backend locally.
- Docker & Docker Compose: Optional but recommended for running the entire application in a containerized environment.
This option allows you to run the application on your local machine without using Docker for the Frontend and Backend.
-
MongoDB:
- Start MongoDB using Docker:
docker compose up mongodb
- Alternatively, you can run MongoDB package or use MongoDB Atlas to avoid using Docker entirely.
- Start MongoDB using Docker:
-
Backend:
- Navigate to the
serverdirectory:cd server - Start the Go backend:
go run main.go
- Navigate to the
-
Frontend:
- Start the frontend:
npm start
- Start the frontend:
-
Database Setup:
- Ensure the required users are set up MANUALLY in the Tchoukball Database Users Collection.
This option allows you to run the entire application in Docker containers.
- Start the Application:
docker compose up
In production, TLS is enabled across the entire application to ensure secure communication.
-
Build the Docker Images:
sudo docker compose -f compose.prod.yaml build
Note: Use the
--no-cacheflag if you need to force rebuild the images without using the cache. -
Run the Application:
sudo docker compose -f compose.prod.yaml up
- All commands should be run from the root directory of the repository.
- Ensure that your certificates are properly configured for production.