-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
34 lines (30 loc) · 917 Bytes
/
init.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
#!/bin/bash
pip install virtualenv > /dev/null
printf "%s\n" "virtualenv installed successfully"
printf "%s\n" "."
printf "%s\n" ".."
printf "%s\n" "..."
virtualenv ENV > /dev/null
printf "%s\n" "virtual environment created"
if find ENV > /dev/null
then
source ENV/scripts/activate > /dev/null
printf "%s\n" "virtual environment activated"
printf "%s\n" "installing packages . . ."
cd app;
pip install -r requirements.txt > /dev/null;
printf "%s\n" "packages installed"
else
printf "%s\n" "virtual environment not created :("
virtualenv ENV > /dev/null
printf "%s\n" "virtual environment created :)"
source ENV/scripts/activate /dev/null
cd app;
pip install -r requirements.txt > /dev/null;
fi
cd ..;
printf "%s\n" "now installing node packages . . ."
cd frontend;
npm i > /dev/null;
printf "%s\n" "DONE!"
printf "%s\n" "Basic template ready, for your project"