Skip to content

sivabalanb/aiohttp-template

Repository files navigation

Aiohttp Template 😎

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:

  1. Clone the repository:
git clone https://github.com/sivabalanb/aiohttp-template.git
  1. Navigate to the project directory:
cd aiohttp-template
  1. Create a virtual environment (optional but recommended):
python3 -m venv venv
  1. Activate the virtual environment:
  • On Windows:
    venv\Scripts\activate
    
  • On macOS and Linux:
    source venv/bin/activate
    
  1. Install dependencies:
pip install -r requirements.txt

Usage:

  1. Run the application: python app.py

  2. 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:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published