Skip to content

htmw/F2025-Async

Repository files navigation

Curated For You By You

This project consists of a frontend (React/Vite) and a backend (FastAPI) application. This README provides instructions on how to set up and run the entire application using Docker Compose.

Table of Contents

Getting Started

The easiest way to run the entire application is with Docker Compose.

Prerequisites

  • Install Docker Desktop for your operating system and ensure it is running.

Running the Application

  1. Clone the repository.

  2. Start the services: From the root directory of the project, run:

    docker-compose up --build -d

    This command will build the images for the frontend and backend services and start all the necessary containers in detached mode.

  3. Seed the database: The backend service uses a MongoDB database. To populate it with initial data, run the following command after the services have started:

    docker-compose exec backend python seed_db.py
  4. Access the application:

To stop all the services, run:

docker-compose down

Services

The docker-compose.yml file defines the following services:

  • frontend: The React/Vite frontend application.
  • backend: The FastAPI backend application.
  • mongodb: The MongoDB database.
  • mongo-express: A web-based admin interface for MongoDB.

Development

Backend-only Development

If you want to work only on the backend, you can use the docker-compose.yml file located in the backend directory. This will start the backend service along with the MongoDB database and Mongo Express.

  1. Navigate to the backend directory:
    cd backend
  2. Start the services:
    docker-compose up --build -d

This setup uses a volume mount for the backend code, allowing for hot-reloading. Refer to backend/README.md for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors