makeproduction環境 (docker compose up --build -d)make dev開発環境 (docker compose up --build)make downdocker compose down --remote-oprhansmake cleandown +--rmi allto remote imagesmake fcleanclean +--volumesデータベースを消すので要注意!make managedjango manage.py (make manage CMD=<ur_cmd>)make createsuperuserアドミ権限のユーザーを作成make nginx||make djangoそれぞれのコンテナ内に移動
https://localhost:8443
.envを./backendに移す or create some like below.
DB_HOST=db
POSTGRES_DB=transcendencedb
POSTGRES_USER=transcendence_user
POSTGRES_PASSWORD=42Tokyo_Transcendence
SECRET_KEY='ojeoqwur8pwquejhdshfgiusdhforu2309r852340-t7ueroisjaidfhiewrhjasd;ilJ:OJDflkewrhgielruqwaruiojefio;waejf;oisdhjafoiu;fhasdkljfh3p9428q5743t27-uq4woeihfj;ks'
JWT_SECRET_KEY='jlfasjdflkjwlhlalkcu09eirtu09i209rsoidjflds;kcmn'
REDIS_KEY='Joewuoidsfjksdnkfdjslfjsdj983'./backend/nginx/certsのgen-certificate.shを実行
- 作成した
cert.pemをbrowserに登録(オプショナル)
- API (
django rest framework) - Single Page Application (
Type Script without any framework) - backend framework ->
django - bootstrap
- postgres db
- remote play by using websocket
django channels - multiplayer
- JWT(
django simple jwt) - 3D (
Three JS) - AI player
- nginx reverse proxy with WAF
(modsecurity)
./frontend/public内に配置 たとえば、./frontend/public/images/abc.jpgは/images/abc.jpgで指定