Description: This is a simple aiohttp web application template designed to jumpstart your aiohttp projects. It provides a basic structure for building web applications using aiohttp, a popular asynchronous web framework for Python.
Features:
- aiohttp-based web application template
- Simple directory structure
- Asynchronous views
- Basic HTML templates with Jinja2
- Static files serving
- Configuration handling using environment variables
- Dockerfile for easy deployment
Installation:
- Clone the repository:
git clone https://github.com/sivabalanb/aiohttp-template.git
- Navigate to the project directory:
cd aiohttp-template
- Create a virtual environment (optional but recommended):
python3 -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
Usage:
-
Run the application: python app.py
-
Access the application: Open your web browser and navigate to
http://localhost:8080
😃
Project Structure:
app.py
: Main application file containing aiohttp app setup.templates/
: Directory for HTML templates.static/
: Directory for static files like CSS, JavaScript, etc.Dockerfile
: Dockerfile for building Docker image.requirements.txt
: List of Python dependencies.
Contributing: Contributions are welcome! Please feel free to open issues or pull requests. 🚀
License: This project is licensed under the MIT License. See the LICENSE file for details.
Author: Sivabalan 😊
Acknowledgments:
- aiohttp for the asynchronous web framework.
- Jinja2 for HTML templating.
- Python dotenv for handling environment variables.
- Docker for containerization. 🐳