Welcome to the Coffee Shop project! This Django application is designed to manage a coffee shop's products, orders, and users efficiently.
- PostgreSQL (Make sure it's installed and running)
- Python 3.11
Follow these steps to get the project up and running on your local machine.
Clone the project repository from GitHub to your local machine.
git clone https://github.com/platzi/django.git coffee_shop
cd coffee_shopCreate and activate a virtual environment.
python3.11 -m venv venv
source venv/bin/activate Install the required Python packages using pip.
pip install -r requirements.txt
Create a .env file in the root of the project. You can use .env.example as a template.
cp .env.example .env
Update the .env file with your database credentials and other necessary configurations.
Create the PostgreSQL database and apply migrations.
psql -U postgres CREATE DATABASE coffeeshop;Apply migrations
python manage.py migrateCreate a superuser to access the Django admin interface.
python manage.py createsuperuser
Start the Django development server.
./manage.py runserver
Access the project by navigating to http://127.0.0.1:8000 in your web browser.
- products: Handles everything related to coffee products.
- users: Manages user authentication and profiles.
- orders: Manages customer orders.
We welcome contributions! Please fork the repository and submit pull requests for any features, improvements, or bug fixes.