Giter Club home page Giter Club logo

django-fastapi's Introduction

Django FastAPI

コンテナを起動

開発環境

docker-compose build
docker-compose up -d
docker-compose exec app sh

# プロジェクトの環境構築
cd /home
poetry run poetry install

# アプリケーションを起動
cd /home/app
make dev

# 管理画面を起動
cd /home/auth
poetry run python manage.py migrate
make dev

本番環境

docker-compose -f docker-compose.prod.yaml up -d

開発環境構築手順

IDE

VSCodeにRemote Containerの拡張機能を入れる。
VSCode左下の「><」をクリックして、コンテナに接続する。

補完が効くようにする。

VSCodeにPythonの拡張機能を入れる。
コンテナ内で/app/srcディレクトリを開く。

poetry install

を実行する。

プロジェクトディレクトリ内に.venvという仮想環境のディレクトリが作られるので、
VSCodeの下にある「Select python interpreter」をクリックし、「Enter interpreter path」を選択し、/app/src/.venv/bin/python3を選ぶ。

django-fastapi's People

Contributors

itsumura-h avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.