Skip to content

bharats487/docker-desktop-todo-fullstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo App with Docker

A simple Todo application with React frontend, Express backend, and PostgreSQL database, all containerized with Docker-Desktop (Need to install on window machine).

Todo App Screenshot

Prerequisites

  • Docker Desktop installed and running

Getting Started

  1. Clone this repository
  2. Start the application:
docker-compose up
  1. Access the application:

Features

  • Create, read, update, and delete todo items
  • Mark todos as completed or active
  • Data persistence using PostgreSQL
  • Containerized deployment with Docker

Project Structure

.
├── docker-compose.yml        # Docker Compose configuration
├── frontend/                 # React frontend application
│   ├── Dockerfile
│   ├── public/
│   └── src/
├── backend/                  # Express backend API
│   ├── Dockerfile
│   ├── controllers/
│   ├── models/
│   └── routes/

API Endpoints

  • GET /api/todos - Get all todos
  • GET /api/todos/:id - Get a specific todo
  • POST /api/todos - Create a new todo
  • PUT /api/todos/:id - Update a todo
  • DELETE /api/todos/:id - Delete a todo

Stopping the Application

To stop the application, press Ctrl+C in the terminal where it's running, or run:

docker-compose down

To completely remove the volumes (database data) as well:

docker-compose down -v

About

A full-stack Todo application with React, Express, and PostgreSQL, containerized with Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published