Giter Site home page Giter Site logo

aoai-gptdemo's Introduction

aoai-gptdemo

flask版

環境構築

venv1 という環境を作成します

Flaskの作業ディレクトリに移動

cd backend-flask

初回のみ実施

python3 -m venv .venv1
. .venv1/bin/activate
pip install -r requirements.txt

環境を切り替え(2回目以降)

. .venv1/bin/activate
(.venv1) @xxxxxxx ➜ /workspaces/aoai-gptdemo/backend-flask (main) $ 

アプリを起動します

export PORT=6000
flask --app run run

Docker環境構築

※簡易版のため、後日修正

cd {project-root}
docker build --tag python-flask -f ./docker/Dockerfile-flask .
docker run -d --rm  -p 5000:6000 python-flask 

Fast API版

venv2 という環境を作成します

FastAPIの作業ディレクトリに移動

cd backend-fastapi

初回のみ実施

python3 -m venv .venv1
. .venv2/bin/activate
pip install -r requirements.txt

環境を切り替え(2回目以降)

. .venv2/bin/activate
(.venv2) @xxxxxxx ➜ /workspaces/aoai-gptdemo/backend-fastapi (main) $ 

アプリを起動します

$ uvicorn main:app --reload --host 0.0.0.0

Docker環境構築

cd {project-root}
docker build --tag fastapi-demo -f ./docker/Dockerfile-fastapi .
docker run -d --rm -p 3100:3100 fastapi-demo

その他

Docker停止方法

docker ps
docker stop {processid}

nenv 終了

deactivate

Vue環境構築

npm init vue@latest

aoai-gptdemo's People

Contributors

h-morozumi 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.