This repository contains a simple Django note taking application that is configured to run within Docker containers. It includes a Django web application and a PostgreSQL database running in separate Docker containers.
Before you begin, ensure you have the following prerequisites installed on your development machine:
Follow these steps to set up and run the project:
-
Clone the Repository
Clone this repository to your local machine:
git clone https://github.com/mohiuddin06617/django_notetaker.git cd django_notetaker
-
Create a .env file by copying the provided .env.example file:
cp .env.example .env
-
Use Docker Compose to build and run the containers
docker-compose up -d --build
-
Open a terminal and access bash of the Django application container by typing:
docker exec -it django_note_taking_app bash
-
Once inside the container's bash shell, please run Django migrations with
python manage.py migrate