Skip to content

Mansteinvon/PowerRange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

208 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerRange

Live Demo


Prerequisites


Docker Setup

1. Clone the repository

git clone https://github.com/Mansteinvon/PowerRange.git
cd PowerRange

2. Start backend services

cd backend
docker-compose up --build

This will start all backend microservices, PostgreSQL, and Redis containers.

3. Start frontend

Open a new terminal window:

cd frontend
npm install
npm run dev

The frontend will be available at http://localhost:3000.

4. Stopping services

To stop all Docker containers:

docker-compose down

Maven Setup (Run Services Without Docker)

1. Start databases (PostgreSQL, Redis)

You can use Docker or install them locally.

2. Configure environment variables

Each backend service has its own .env or application.properties file.
Update database and Redis connection details as needed.

3. Run backend services

For each service (e.g., user-service):

cd backend/user-service
mvn spring-boot:run

Repeat for each microservice.

4. Run frontend

cd frontend
npm install
npm run dev

Environment Variables

  • Edit frontend/.env to set API endpoints and secrets.
  • Each backend service has its own .env or application.properties for DB, Redis, and JWT configuration.

Admin Key for Testing

To access admin features during testing, use the following admin key:

PowerRanger2025AdminKey!

Troubleshooting

  • Ensure required ports are available: 3000 (frontend), 8081-8087 (backend), 5432 (Postgres), 6379 (Redis).
  • Use docker-compose logs to view service logs if issues arise.

About

The repository is for a full stack e commerce website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors