Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

kbjohnson-penn/observer-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observer Dashboard

Observer Dashboard is a web application built with Django for the backend, React for the frontend, and orchestrated using Docker.

Prerequisites

  • Docker
  • Docker Compose

Project Structure

observer-dashboard/
│
├── backend/                # Django project directory
├── frontend/               # React project directory
├── nginx/                  # Nginx configuration directory
├── docker-compose.yml      # Docker Compose configuration file
├── .env.example            # Environment variables for Docker services
└── README.md

Setup

Clone the Repository:

git clone https://github.com/alex-budko/observer-dashboard.git
cd observer-dashboard

Environment Variables:

Rename the provided .env.example to .env and update the variables as necessary. Ensure that you don't commit the .env file to version control.

cp .env.example .env

Edit the .env file with your preferred text editor. Update the .env file in the backend/ directory too.

Note: Ensure that the MYSQL_HOST in the .env file in the project root directory matches the service name in the docker-compose.yml file.

Build and Start the Services:

docker compose build
docker compose up

This will build the Docker images and start the services defined in docker-compose.yml.

Access the Application:

Development

Backend: Any changes made to the Django application will be reflected immediately due to the volume binding in the docker-compose.yml.

Frontend: Similarly, changes made in the React app will be reflected in real-time, due to React's hot-reloading feature.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published