Welcome to the Analytics API project! This repository provides a robust and scalable API designed to facilitate seamless data analytics operations. Whether you're building data-driven applications or integrating analytics into existing systems, this API offers the flexibility and performance you need.
- Comprehensive Data Endpoints: Access a wide range of data analytics functionalities through well-defined endpoints.
- Scalability: Designed to handle large datasets efficiently, ensuring optimal performance.
- Extensibility: Easily customizable to fit specific analytics requirements and workflows.
- Docker Support: Simplified deployment using Docker, allowing for consistent environments across development and production.
Ensure you have the following installed on your system:
- Docker: For containerization and simplified deployment.
- Docker Compose: To manage multi-container Docker applications.
-
Clone the Repository:
git clone https://github.com/herman72/analytics-api.git cd analytics-api -
Set Up Environment Variables:
-
Rename
.env.composeto.env:mv .env.compose .env
-
Update the
.envfile with your specific configuration settings.
-
Utilize Docker Compose for streamlined management:
-
Start the Application:
docker compose up --watch
This command builds the Docker image and starts the application in detached mode.
-
Stop the Application:
docker compose down
To remove associated volumes:
docker compose down -v
Once the application is running, access the API documentation and test endpoints by navigating to http://localhost:8000 in your browser.
For development purposes, you can access the application container's shell:
docker compose run app /bin/bashOr, to start a Python interactive session:
docker compose run app pythonWe welcome contributions to enhance the Analytics API. To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a Pull Request.
Please ensure your code adheres to the project's coding standards and includes appropriate tests.
This project is licensed under the Apache-2.0 License. See the LICENSE file for more details.
For any questions or further assistance, feel free to open an issue in this repository. Happy coding!
Docker
docker build -t analytics-app -f Dockerfile.web .docker run analytics-app
becomes
docker compose run app /bin/bashordocker compose run app python