cdc-placement-website-backend/setup.bat

16 lines
462 B
Batchfile
Raw Normal View History

start /wait python -m venv venv && venv\Scripts\activate && pip install -r requirements.txt &^
echo Environment Setup Complete &^
timeout 3 > NUL &^
2022-06-06 19:03:04 +05:30
echo enter password for user postgres &^
createdb -h localhost -p 5432 -U postgres cdc &^
cd "CDC_Backend" &^
python manage.py flush --no-input &^
python manage.py makemigrations &^
python manage.py migrate &^
echo Migrations complete &^
2022-06-06 19:03:04 +05:30
cd .. &^
start .\superuser.bat &^
echo done successfully