Because many stores' TV channels are locked in specific junk information channels. So I decided to develop a map website to mark the stores that broadcast high-quality TV programs, so that everyone can search and return the store information.
Thanks for the Web service by NoobTW.
PTS is 'Public Television Service Foundation'
This is english link
- PostgreSQL
- Postgis
- libpq-dev
-
Install commom environment
sh ./install.sh
-
Install python environment
-
development
pip3 install -r requirements/dev.txt
-
prodution
pip3 install -r requirements/prod.txt
-
-
export environment
export FLASK_CONFIG="<env>" # `<env>` can be {development, testing, production, default} # export FLASK_CONFIG="development"
-
edit config.py
vim config.py
-
migrate database
python3 manage.py db upgrade
-
run
python3 manage.py run
sh ./deploy.sh
sh ./tests/build.sh
env FLASK_CONFIG='testing' coverage run --source=app tests/v1/api.py
coverage report
npm install -g aglio
# or you can use yarn add
aglio -i docs/api.apib --theme-template triple -o index.html
python -m http.server