As part of my journey into developing web applications with Django and React, I'm building this project for educational purposes. This is a learning exercise focused on understanding how these two frameworks can work together to build a full-stack application.
I'm documenting the steps as I follow along with a YouTube tutorial playlist: Django and React Full-Stack Guide.
Feel free to explore the code, leave feedback, or suggest new features I could implement!
- Backend built with Django (for robust backend logic and API)
- Frontend created with React (for dynamic and responsive UI)
- REST API integration between Django and React
- Dockerized development and production environment
- Docker and Docker Compose installed (for running the app with Docker)
- Clone the repository
git clone https://github.com/sachmii/Music-Controller.git cd HouseParty
Make sure Docker and Docker Compose are installed on your system.
To build and start the app in Docker, run:
docker-compose up --build
- Build Docker Images: Build Docker images for both the frontend and backend services.
- Start Containers: Start the Docker containers for the frontend (React) and backend (Django) services.
- Backend: http://localhost:8000
- Frontend: http://localhost:3000
To stop the running Docker containers, execute the following command:
docker-compose down
This project includes Docker configuration files for both the backend and frontend services.
- Backend: The backend service is built using a
python:3.10-slim
Docker image. - Frontend: The frontend service is built using a
node:16
Docker image.
Docker Compose is employed to orchestrate and manage both services together.
- Missing Node Modules: If the frontend fails to build due to missing modules (e.g.,
style-loader
), ensure you runnpm install
to install all necessary dependencies before building the Docker image.
Feel free to customize the content based on your specific project setup and instructions.