-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4920bb9
commit 674c232
Showing
2 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Step 1: Clone the Repository | ||
echo "Cloning the repository..." | ||
git clone https://github.com/Meta-Backend-Developer/08-LittleLemon.git | ||
cd 08-LittleLemon || exit | ||
|
||
# Step 2: Activate the Existing Virtual Environment | ||
echo "Setting up virtual environment..." | ||
if [ ! -d "lemon" ]; then | ||
python3 -m venv lemon | ||
fi | ||
source lemon/bin/activate | ||
|
||
# Step 3: Install Dependencies | ||
echo "Installing dependencies..." | ||
pip install -r requirements.txt | ||
|
||
# Step 4: Apply Database Migrations | ||
echo "Applying database migrations..." | ||
python3 manage.py migrate | ||
|
||
# Step 5: Run the Development Server | ||
echo "Starting the development server..." | ||
python3 manage.py runserver |