git clone https://github.com/Mansteinvon/PowerRange.git
cd PowerRangecd backend
docker-compose up --buildThis will start all backend microservices, PostgreSQL, and Redis containers.
Open a new terminal window:
cd frontend
npm install
npm run devThe frontend will be available at http://localhost:3000.
To stop all Docker containers:
docker-compose downYou can use Docker or install them locally.
Each backend service has its own .env or application.properties file.
Update database and Redis connection details as needed.
For each service (e.g., user-service):
cd backend/user-service
mvn spring-boot:runRepeat for each microservice.
cd frontend
npm install
npm run dev- Edit
frontend/.envto set API endpoints and secrets. - Each backend service has its own
.envorapplication.propertiesfor DB, Redis, and JWT configuration.
To access admin features during testing, use the following admin key:
PowerRanger2025AdminKey!
- Ensure required ports are available: 3000 (frontend), 8081-8087 (backend), 5432 (Postgres), 6379 (Redis).
- Use
docker-compose logsto view service logs if issues arise.