Welcome to the LinguaWeb API repository, an API for the LinguaWeb website. This API is built using FastAPI, a modern, high-performance web framework for building APIs.
FastAPI is a high-performance web framework for building APIs with Python 3.6+ based on standard Python type hints. It's known for its speed, ease of use, and automatic generation of OpenAPI documentation. This makes it ideal for building robust, scalable, and well-documented web applications and services.
- Install Poetry, a dependency management tool, if you haven't already.
- Clone the repository and navigate to the project directory.
- Install dependencies using Poetry:
poetry install
- Start the FastAPI server:
poetry run uvicorn linguaweb_api.main:app --port 8000 --app-dir src --env-file .env.example --reload
Alternatively, use Docker to build and run the application in an isolated environment.
- Run the Docker container from the GitHub repository:
docker run -p 8000:8000 ghcr.io/childmindresearch/linguaweb-api:main
The FastAPI server automatically generates and serves an OpenAPI specification for the API. Once the server is running, access the interactive API documentation at:
- Swagger UI:
http://localhost:8000/docs
- ReDoc:
http://localhost:8000/redoc
These pages provide a detailed overview of all available API endpoints, their expected input parameters, and response formats.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.