-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcreate_project.sh
More file actions
executable file
·37 lines (32 loc) · 1.1 KB
/
Copy pathcreate_project.sh
File metadata and controls
executable file
·37 lines (32 loc) · 1.1 KB
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
37
#!/usr/bin/env bash
echo ""
echo -e "--------------> \033[1mThank you for choosing our boilerplate! We'll begin installation right now :]\033[0m"
read -p "--------------> Project folder name: " mainmenuinput
echo ""
echo "--------------> Downloading, unpacking and cleaning base code..."
echo ""
wget https://github.com/labcodes/django-react-boilerplate/archive/master.zip -P /tmp/
unzip -qq /tmp/master.zip
rm /tmp/master.zip
mv django-react-boilerplate-master "$mainmenuinput"
cd "$mainmenuinput"
echo ""
echo "--------------> Installing python and js dependencies..."
echo ""
make install_dependencies
echo ""
echo "--------------> Activating the poetry python virtualenv..."
echo ""
sleep "0.1"
source $(poetry env info --path)/bin/activate
echo ""
echo "--------------> Setting up basic configuration for the django server..."
echo ""
cp env.example .env
python manage.py migrate
echo ""
echo -e "--------------> \033[1mDone! Now we'll run the app to check everything is running smoothly :]\033[0m"
sleep 2
echo "--------------> Running the app for the first time! Hit Ctrl+C or Command+C to interrupt."
echo ""
make run