-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
36 lines (32 loc) · 1.08 KB
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
setup() {
# Clean the database
rm backend/petpal/db.sqlite3
touch backend/petpal/db.sqlite3
# Migrations
rm -r backend/petpal/accounts/migrations
rm -r backend/petpal/applications/migrations
rm -r backend/petpal/comments/migrations
rm -r backend/petpal/listings/migrations
rm -r backend/petpal/notifications/migrations
rm -r backend/petpal/blogs/migrations
rm -r images
python backend/petpal/manage.py makemigrations accounts
python backend/petpal/manage.py makemigrations applications
python backend/petpal/manage.py makemigrations comments
python backend/petpal/manage.py makemigrations listings
python backend/petpal/manage.py makemigrations notifications
python backend/petpal/manage.py makemigrations blogs
python backend/petpal/manage.py migrate
}
deactivate
python3 -m venv venv
source venv/bin/activate
pip install django
pip install djangorestframework
pip install djangorestframework-simplejwt
pip install Pillow
pip install django-filter
pip install django-cors-headers
yes Y | setup
# Create a superuser
python backend/petpal/manage.py createsuperuser