Welcome to the Ocean project! To get started with developing on this project, you'll need to set up a Python virtual environment and install the required dependencies. Follow these steps:
git clone https://github.com/WRXinYue/ocean.git
cd oceanpython -m venv venvOn Windows:
.\venv\Scripts\activateOn MacOS/Linux:
source venv/bin/activateInstall all the required dependencies by running:
pip install -r requirements.txtNow, you are ready to start developing!
Notice:
- If you are in China and your console shows an error like "losing rust-xxx" and it tells you to update your "pip" package, you can shut down the VPN.
- Make sure your computer has the GCC environment.
app
├── api - web related stuff.
│ ├── dependencies - dependencies for routes definition.
│ ├── errors - definition of error handlers.
│ └── routes - web routes.
├── core - application configuration, startup events, logging.
├── db - db related stuff.
│ ├── migrations - manually written alembic migrations.
│ └── repositories - all crud stuff.
├── models - pydantic models for this application.
│ ├── domain - main models that are used almost everywhere.
│ └── schemas - schemas for using in web routes.
├── resources - strings that are used in web responses.
├── services - logic that is not just crud related.
├── tts - Text to speech
└── main.py - FastAPI application creation and configuration.- OpenAPI Specification: http://127.0.0.1:8080/openapi.json
- Swagger UI: http://127.0.0.1:8080/docs
- ReDoc: http://127.0.0.1:8080/redoc