Bookflow is a simple Django web application utilizing Docker and PostgreSQL.
Before you start, ensure you have the following installed:
-
Clone this repository:
git clone https://github.com/OkayJosh/bookflow.git cd bookflow -
Copy a
.env.tpfile in the project root and create a new file as.envwith the content:#!/bin/bash # Check if .env.tp exists if [ ! -f .env.tp ]; then echo "Error: .env.tp file not found. Please make sure .env.tp exists in the project root." exit 1 fi # Copy .env.tp to .env cp .env.tp .env echo "Successfully copied .env.tp to .env"
-
Build and run the Docker containers:
sudo chmod -R +rX .docker compose build docker compose up -d
then run this seeding:
docker compose run web
-
Open your web browser and navigate to http://0.0.0.0:8000 to access the Django app.
-
Use password
passwordand usernamestudent1
-
The Django app runs on port 8000. You can customize the port in the
docker-compose.ymlfile. -
The PostgreSQL database is configured with the credentials specified in the
.envfile. -
Adjust the Django settings and configurations in the
Bookflow/settings.pyfile as needed.
Feel free to contribute by opening issues or creating pull requests. Contributions are welcome!