This demo API, built using FastAPI, MongoDB, and Docker, manages user information and implements translation functionality using LangChain and the OpenAI API, and uses GitHub Actions for CI unit tests.
Please add the variable OPENAI_API_KEY=your_key
to your .env
file to use this application.
docker compose up --build
- Start MongoDB Container
docker pull mongo
- Start FastAPI Application
docker run -d --name mongodb -p 27017:27017 mongo
uvicorn app.main:app --reload
- http://127.0.0.1:8000/docs
- http://127.0.0.1:8000/redoc
- http://127.0.0.1:8000/openapi.json
- http://127.0.0.1:8000/chain/playground/
- langchin翻譯頁面
- Unit testing
- add Nginx
- More asyncio example scenarios
- API validation
- Run GitHub Actions