Skip to content

antonver/Cocktails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Cocktails Project

This project is a Django and React application for exploring and managing cocktails.

Installation and Setup

1. Clone the Project

git clone https://github.com/antonver/Cocktails.git
cd Cocktails

2. Download the Keras Model

Download the model from this link and add it to the root of the Django project .

3. Backend Setup

cd backend
python3 -m venv venv  # Create a virtual environment
source venv/bin/activate  # Activate the virtual environment (Linux/macOS)
pip install -r requirements.txt  # Install dependencies

4. Configure Environment Variables

Create a .env file using sample.env as an example and fill in the required information.

5. Apply Database Migrations

python manage.py migrate

6. Start the Django Server

python manage.py runserver

Frontend Setup

cd ../frontend  
npm install  # Install dependencies

Create a .env file using sample.env as an example and fill in the required information.

7. Start the Frontend Application

Open another terminal and run:

cd frontend
npm run dev

Load Database with Information

Make sure the Django server is running, then execute:

python backend/parseApi.py

This script fetches data from the TheCocktailDB API and inserts it into the database.

This website was deployed on the DigitalOcean platform: https://ns1.digitalocean.com.cocktails.rocks

The main page:

main page

List of cocktails:

List of cocktails

Cocktails card:

Cocktails card

Rock-paper-scissors game with ML model:

Rock-paper-scissors game with ML model

About

React + Django Rest Framework project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors