A simple Todo app with a React frontend, Node.js backend, and PostgreSQL database.
Features: React for the frontend Node.js for the backend API PostgreSQL for the database Docker for containerization
Prerequisites: Before running the application, make sure you have the following installed: Docker Docker Compose
-
Clone the repository:
git clone https://github.com/halyna-k/todo.git cd todo -
Set up environment variables:
- Copy the example environment file to .env:
cp .env.example .env
- Edit the .env file with your specific configuration (e.g., database credentials).
-
Run the application:
docker compose --env-file .env up --build
-
Access the app:
- Frontend: [http://localhost:3000]
- Backend: [http://localhost:8000]
-
Stop the application:
docker compose down
Folder Structure: client/ - React frontend source code. server/ - Node.js backend source code. .env.example - Sample environment configuration file. docker-compose.yml - Docker Compose configuration file.
Make sure .env files are properly set up before running. 🚀