This is a simple mini social media app built using htmx, Flask, and Bootstrap. It allows users to share posts. The project is designed to be lightweight and easy to understand, making it a great starting point for those learning web development with these technologies.
- Post Creation: Users can create and share posts with text and images.
- Interaction: Users can like and comment on posts.
- Responsive Design: Bootstrap is used to ensure a mobile-friendly and responsive user interface.
- htmx: For seamless and fast interactions between the server and the client.
- Flask: A lightweight web application framework for Python.
- Bootstrap: A front-end framework for designing responsive and mobile-first websites.
Make sure you have the following installed:
- Python
- Flask (
pip install Flask
) - htmx
- Clone the repository:
git clone https://github.com/MrMDrX/mini-social-media-htmx-flask-app.git
cd mini-social-media-htmx-flask-app
- Create and Activate a Virtual Environment (Optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows, use 'venv\Scripts\activate'
- Install dependencies:
pip install -r requirements.txt
- Run the application:
flask --app server run --port 3000
Visit http://localhost:3000 in your browser to see the app in action.
templates/
: Contains HTML templates.static/
: Stores static assets like CSS and JavaScript.server.py
: The main Flask application file.
Contributions are welcome! Feel free to open issues or pull requests.
This project is licensed under the MIT License.
- Thanks to the creators of htmx, Flask, and Bootstrap for providing excellent tools for web development.