Skip to content

carlosasuncion/django_coffee

 
 

Repository files navigation

Coffee Shop

Welcome to the Coffee Shop project! This Django application is designed to manage a coffee shop's products, orders, and users efficiently.

Requirements

  • PostgreSQL (Make sure it's installed and running)
  • Python 3.11

Installation Guide

Follow these steps to get the project up and running on your local machine.

1. Clone the Repository

Clone the project repository from GitHub to your local machine.

git clone https://github.com/platzi/django.git coffee_shop
cd coffee_shop

2. Set Up Virtual Environment

Create and activate a virtual environment.

python3.11 -m venv venv 
source venv/bin/activate 

3. Install Dependencies

Install the required Python packages using pip.

pip install -r requirements.txt

4. Configure Environment Variables

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.

5. Set Up the Database

Create the PostgreSQL database and apply migrations.

psql -U postgres CREATE DATABASE coffeeshop;

Apply migrations

python manage.py migrate

6. Create a Superuser

Create a superuser to access the Django admin interface.

python manage.py createsuperuser

7. Run the Development Server

Start the Django development server.

./manage.py runserver

Access the project by navigating to http://127.0.0.1:8000 in your web browser.

Project Structure

  • products: Handles everything related to coffee products.
  • users: Manages user authentication and profiles.
  • orders: Manages customer orders.

Contributing

We welcome contributions! Please fork the repository and submit pull requests for any features, improvements, or bug fixes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%