Web Starter
Change directory into your newly created project:
$ cd web-starter
Create a Python virtual environment:
$ python3 -m venv ../env
Upgrade packaging tools:
$ ../env/bin/pip install --upgrade pip setuptools
Install required package:
$ ../env/bin/pip install -e .
Copy configuration file:
$ cp development.ini test.ini
Set sqlalchemy.url
on test.ini
and create tables:
$ ../env/bin/initialize_web_starter_db test.ini
Run your project:
$ ../env/bin/pserve --reload test.ini
Web Baru (Indonesian)
Web Starter dirancang untuk disalin menjadi direktori baru. Misalkan Anda ingin membuat aplikasi SMS dengan bekal ini maka salinlah direktorinya:
$ cd .. $ cp -r web-starter web-sms $ cd web-sms $ rm -rf .git $ rm .gitignore $ mv web_starter web_sms
Carilah kata web_starter
di seluruh file Python:
$ find -name "*.py" | xargs grep web_starter
Ubahlah filenya dan ganti web_starter
menjadi web_sms
. Lakukan hal yang
sama pada file konfigurasi *.ini
.