- Notifications
You must be signed in to change notification settings - Fork0
HydroPal is a progressive web application that tracks user water intake and calculates their plastic pollution.
License
giannicharles/hydropal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A comprehensive water management application built with modern web technologies.
Follow these steps to get HydroPal running on your Windows machine using Docker.
- Windows 10 (version 2004 or higher) or Windows 11
- Administrator privileges for initial setup
- At least 4GB RAM available for Docker
Run PowerShell as Administrator and execute:
wsl--install
Note
If WSL is already installed, update it instead:
wsl--update
You will be prompted to restart your PC after installation.
winget install--id Docker.DockerDesktop-e--source winget
Important
After installation:
- Restart your computer
- Launch Docker Desktop from the Start menu
- Ensure Docker Desktop is running (check system tray)
- Enable WSL 2 integration in Docker settings
winget install--id Git.Git-e--source winget
Tip
Restart PowerShell after installation to refresh the PATH.
git clone https://github.com/giannicharles/hydropal.git
Note
This will create ahydropal
folder in your current directory. Usecd
to navigate to your preferred location first if needed.
cd hydropal
Create the required.env
files for both frontend and backend:
Frontend environment file:
- Create a new file:
frontend/.env
- Add this content:
VITE_API_URL=http://localhost:5000
Backend environment file:
- Create a new file:
backend/.env
- Add this content:
MONGO_URI=mongodb://mongodb:27017/hydropal-dbJWT_SECRET=your_strong_secret_hereJWT_EXPIRE=30dFRONTEND_URL=http://localhost:3000NODE_ENV=development
Important
Security Recommendation: ChangeJWT_SECRET
to a stronger, unique value:
JWT_SECRET=hydropal_strong_secret_key_2025_custom
Warning
Create these files manually using a text editor. PowerShell commands may cause encoding issues that prevent the database from working properly.
Note
These .env files are excluded from version control via.gitignore
to protect configuration data.
docker compose up-d
Note
Initial build may take several minutes. Once complete:
- Frontend:http://localhost:3000
- Backend API:http://localhost:5000/api
Command | Description |
---|---|
docker compose up -d | Build images and start all services in background |
docker compose down | Stop and remove all containers |
docker compose restart | Restart all services |
docker compose logs | View logs from all services |
# Rebuild and restart (useful during development)docker compose down && docker compose up-d--build# View running containersdocker ps# View all containers (including stopped)docker ps-a
# Access container shelldocker exec-it<container_name>/bin/bash# View specific container logsdocker logs<container_name>-f# View container resource usagedocker stats
# Connect to MongoDBdocker exec-it hydropal-mongodb-1 mongosh# Inside MongoDB shelluse hydropal-dbshow collectionsdb.<collection_name>.find().pretty()
Docker not starting:
- Ensure WSL 2 is properly installed
- Check if virtualization is enabled in BIOS
- Restart Docker Desktop service
Port conflicts:
- Check if ports 3000 or 5000 are already in use
- Modify port mappings in
docker-compose.yml
if needed
Permission errors:
- Run PowerShell as Administrator
- Ensure Docker Desktop has proper permissions
# Check Docker versiondocker--version# Check running servicesdocker compose ps# View system informationdocker system info
hydropal/├── docker-compose.yml├── frontend/├── backend/└── README.md
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see theLICENSE file for details.
About
HydroPal is a progressive web application that tracks user water intake and calculates their plastic pollution.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.