This project is a Django and React application for exploring and managing cocktails.
git clone https://github.com/antonver/Cocktails.git
cd CocktailsDownload the model from this link and add it to the root of the Django project .
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 dependenciesCreate a .env file using sample.env as an example and fill in the required information.
python manage.py migratepython manage.py runservercd ../frontend
npm install # Install dependenciesCreate a .env file using sample.env as an example and fill in the required information.
Open another terminal and run:
cd frontend
npm run devMake sure the Django server is running, then execute:
python backend/parseApi.pyThis 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