- Install Git, PostgreSQL, Python 2.7, npm :
- Debian:
o
$ sudo apt-get install git
postgresql-9.4 postgresql-server-dev-9.4 python python-pip nodejs npm
- Windows:
- Tambahkan path pada windows (jika belum ada), sesuaikan
dengan path instalasi masing - masing aplikasi :
- Python : [Default] "C:\Python27\",
"C:\Python27\Scripts\",
"C:\Python27\Lib\site-packages\"
- PostgreSQL : [Default] "C:\Program
Files\PostgreSQL\9.4\bin\"
- Node JS : [Default] "C:\Program
Files\nodejs\"
- Git : [Default] "C:\Program Files\Git\cmd"
- Install pip (jika belum ada) :
- Download pip
- Install pip :
o
python get-pip.py
- Install bower & grunt (jika belum ada) :
·
npm install -g bower
·
npm install -g grunt-cli
- Ambil versi development SII terakhir
·
GIT_SSL_NO_VERIFY=true git clone
https://code.qti.co.id/scm/psii/sii.git
- Pindah ke directory sii
·
cd sii
- Install backend dependency
·
pip install -r requirements.txt
·
hapus psycopg2 di requirements.txt
·
pip install psycopg2
- Jalankan synchronize database
·
python server.py syncdb
Jika ada
prompt tambahkan superuser pilih no
- Jalankan migrate database
·
python server.py migrate
- Masukkan data dummy ke database
·
python server.py loaddata api\fixtures\sii-v1.json
- Install frontend dependency
·
npm install
·
bower install
- Compile frontend
·
grunt dev
- Jalankan frontend
·
python server.py runserver 3000
Tidak ada komentar:
Posting Komentar