-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_instructions
More file actions
33 lines (26 loc) · 1.14 KB
/
Copy pathsetup_instructions
File metadata and controls
33 lines (26 loc) · 1.14 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
# install and setup Node and NPM
# this is the easiest way to install the latest version of NPM
cd /tmp/
1. curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh | bash
2. For ubuntu: source ~/.profile
For mac: source ~/.bash_profile
3. nvm install --lts
# installing mongodb on ubuntu
cd /tmp/
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
sudo service mongod status
# cd to your project directory
pip install --upgrade pip
pip install -r requirements.txt
npm install
# XNOTE: create binaries later
./node_modules/.bin/webpack --config webpack.config.js --watch
# the watch flag is to keep the server running to pick up changes made in dev env. DON'T USE IT IN PRODUCTION
# for running the django server
python manage.py runserver