Skip to content

Latest commit

Β 

History

History
40 lines (33 loc) Β· 929 Bytes

File metadata and controls

40 lines (33 loc) Β· 929 Bytes

Gompada - Backend

1. environtment

  • FastAPI
  • python 3.8.x (tested on 3.8.10)

2. install

  • Make your virtual envorionment
$ python -m venv <your-virtual-env-name>
$ source <your-virtual-env-name>/bin/activate
  • Install modules on your virtual environment
$ pip install -r requirements.txt

3. Execute

Development

'if you want to run this with frontend, use port 30001, cuase the default devServer proxy is http://127.0.0.1:30001/api in frontend.
see https://github.com/boostcampaitech3/final-project-level3-nlp-03/blob/main/frontend/.env.dev
'
$ cd app
$ uvicorn main:app --host=0.0.0.0 --port=30001 --reload

Production

$ cd app
$ gunicorn -k uvicorn.workers.UvicornWorker --access-logfile ./gunicorn-access.log main:app --bind 0.0.0.0:30001 --workers 1 --daemon

4. DOCS

  1. Execute server(local)
  2. Goto http://127.0.0.1/docs
  3. swagger

5. Reference