The backend of project "ふろちゃでぼっと" (Flowcha-de-bot) Created by students in Kyoto University
2022年技育展 チーム開発部門 最優秀賞受賞作品
Link
- Python / Django / PostgreSQL
- Server/deployment: docker+Heroku
-
postgresの導入 / Import the Postgres
-
仮想環境の作成 / Create the virtual environment
python -m venv [the name of virtual environment]
- ライブラリのインストール / Install the requirements environment
pip install -r requirements.txt
- データベースの作成 / Create the database
データベースのコンソールにはいって以下のSQLを実行 Go into the console of database, and run the SQL code below.
CREATE DATABASE linebot_db;
- DBの設定の追加 / Add the settings of database
.env.example
をコピーして、.env
にrename、正しい値を設定する。
copy the .env.example
and rename it to.env
. Then set the right value.
- マイグレーションの実行 / Migration Execution
DJANGO_READ_ENV_FILE=True python manage.py migrate
- 開発サーバの起動
DJANGO_READ_ENV_FILE=True python manage.py runserver 8000
CI: Circle CI CD: Circle CI + Heroku