For easier solo maintenance, the git workflow has been simplified to use only the main + feature/* branches.
Note
For historical reference, you can view the original workflow used during the course and its Git guidelines (branching, PR process, commit conventions, etc.) here:
TEAM07 Archive Repo https://github.com/aryahassibi/TEAM07/blob/develop/docs/Git_Guide.md
Make sure you have Docker installed. You can download and install Docker Desktop from here.
git clone https://github.com/aryahassibi/Compresso-Store
cd Compresso-StoreAdd a .env file in the project root to manage sensitive data:
PORT=5000
DB_HOST=db
DB_USER=root
DB_PASS=
DB_NAME=ecommerce_db
JWT_SECRET=JWTSECRET
The DB_PASS field should be left empty since for now during the development phase, the database is modified to accept empty passwords.
Caution
Use environment variables (like the '.env' file) for sensitive data. Never hard-code passwords, tokens, or keys in the code.
docker --versionStart all services (backend, frontend, database) with:
docker-compose up --buildThe first time you run this command you might get an error and your may able ot resolve it easirly by stopping the application (press Ctrl+C in the terminal) and running the command again.
Access Services:
- Frontend: http://localhost:3000
- Backend: http://localhost:5001
To stop the running containers, press Ctrl+C in the terminal, then run:
docker-compose downThis will stop and remove the containers. However, the data will persist in the database volume. If you want to remove the data as well, run:
docker-compose down -vThis command stops and removes the containers and associated volumes, effectively resetting the database and other persistent data.
Tip
These commands can also be used to resolve Docker errors by ensuring a clean state before restarting the services.