TradingApp-API is a FastAPI-based API for a Trading App. It provides a high-performance backend solution for managing user authentication, trading operations, chat functionality, serving web pages, and background task handling.
- User authentication with secure endpoints for registration, login, and authentication management.
- Real-time chat functionality using WebSocket connections.
- Endpoints for managing trading operations with secure access and data validation.
- Web page serving for interactive user interfaces.
- Background task handling for asynchronous processing.
- Python 3.10
The repository follows a modular structure, organizing the code into separate directories for different functionalities, including authentication, chat, trading operations, web page serving, and background tasks. It utilizes FastAPI's features such as routing, models, and middleware for building a robust and scalable API.
src
: Contains the main source code of the FastAPI application.tests
: Includes unit tests for the project.docker
: Holds Docker-related files for containerization.migrations
: Contains database migration scripts generated by Alembic.- Other configuration and dependency files.
To launch the project, follow these steps:
- Ensure you have Docker and Docker Compose installed on your machine.
- Open a terminal or command prompt.
- Clone the repository using the following command:
git clone https://github.com/joerude/fastapi-trade-api-sample.git
- Navigate to the project's root directory:
cd fastapi-trade-api-sample
- Run the following command to build and launch the project using docker-compose:
docker-compose up --build