Code Monkey home page Code Monkey logo

demo-fastapi-crud-api's Introduction

demo-fastapi-crud-api

環境

  • Python 3.11.4

仮想環境作成

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

サーバ起動

uvicorn app.main:app --reload

APIドキュメント

# Swagger形式
http://127.0.0.1:8000/docs
http://0.0.0.0:8000/docs

# ReDoc形式
http://127.0.0.1:8000/redoc
http://0.0.0.0:8000/redoc

(参考)初期構築時にインストールしたもの

pip install fastapi
pip install sqlalchemy
pip install "uvicorn[standard]"
pip install flake8 black isort mypy

# PostgreSQL用
pip install psycopg2-binary

pip freeze > requirements.txt

demo-fastapi-crud-api's People

Contributors

yowatanabe avatar

Watchers

 avatar

demo-fastapi-crud-api's Issues

GItHub Actions 導入

  • feature-github-actions
  • v0.6.0
  • GitHub Actionsでプルリクエストの自動アサインを導入
  • Settingsの設定変更も必要
    • Settings - Actions - General - Workflow permissionsに移動
    • Read and write permissionsを選択
    • Allow GitHub Actions to create and approve pull requestsを選択

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.