Skip to content

akashprap/Flask_Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Application 📝

Description 📖

This repository contains the source code for a simple blog application. Users can create, read, update, and delete blog posts using this web-based application. It provides a user-friendly interface for managing and sharing blog content.

Features 🚀

  • ✨ User Registration and Authentication
  • ✏️ Create and Edit Blog Posts
  • 💬 View and Comment on Posts
  • 👤 User Profiles
  • 🔍 Search and Filter Posts
  • 📱 Responsive Design for Mobile and Desktop

Technologies Used 💻

  • 🐍 Python
  • 🌐 Flask
  • 🛢️ SQLAlchemy
  • 🎨 HTML/CSS
  • 📱 Bootstrap (optional)
  • 📚 Other technologies and libraries used...

Installation 🛠️

To run this application locally, you will need to set up some environment variables. Follow these steps:

  1. Clone this repository:

    git clone https://github.com/akashprap/Flask_Blog
  2. Create a virtual environment (optional but recommended):

      virtualenv venv
  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS and Linux:

      source venv/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. Set up the following environment variables:

    • SECRET_KEY: A secret key for your application.

    • SQLALCHEMY_DATABASE_URI: The URI for your database (SQLite).

    • EMAIL_USER: Your email address for sending emails.

    • EMAIL_PASS: Your email password or an app-specific password for sending emails.

    • Open a terminal or Command Prompt window.

    • Set the EMAIL_USER and EMAIL_PASS environment variables using the following commands:

      • For Windows:

        setx EMAIL_USER "your_email@gmail.com"
        setx EMAIL_PASS "your_email_password_or_app_password"
      • For macOS and Linux:

        export EMAIL_USER="your_email@gmail.com"
        export EMAIL_PASS="your_email_password_or_app_password"

    Replace "your_email@gmail.com" with your email address and "your_email_password_or_app_password" with your email password or an app-specific password if applicable.

    You can set these environment variables in your system or by using a tool like python-dotenv.

  6. Start the application:

    python run.py
  7. Access the app in your web browser at http://localhost:5000.

Usage 📝

  • Register for an account or log in if you already have one.
  • Create new blog posts, edit existing ones, and share your thoughts with the world!
  • Explore and engage with other users' posts.

Contributing 🤝

Contributions are welcome! If you'd like to suggest changes or report bugs, please open an issue or submit a pull request.

Contact 📧

If you have any questions or feedback, you can reach me at Developer.

Happy Blogging! 🚀

About

This is Blog App built using Python and it's libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published