Skip to content

This project is a blog developed using Flask. It allows users to view posts, add new entries, and leave comments.

Notifications You must be signed in to change notification settings

AlexTkDev/MyFlaskProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Documentation on Flask

Project Description

This project is a blog developed using Flask. It allows users to view posts, add new entries, and leave comments.

Project Structure

myblog/
├── instance/
│   ├── __init__.py
│   └── config.py
├── templates/
│   ├── base.html
│   ├── index.html
│   ├── post.html
│   └── new_post.html
├── app.py
├── requirements.txt
└── README.md

Directory and File Descriptions

  • instance/: Configuration files.

    • __init__.py: Package initialization.
    • config.py: Application configuration.
  • templates/: HTML templates.

    • base.html: Common page structure.
    • index.html: Home page.
    • post.html: Post page.
    • new_post.html: New post page.
  • app.py: Main application file.

  • requirements.txt: Project dependencies.

Installation and Running the Project

Prerequisites

  • Python 3.8+
  • pip

Cloning the Repository

git clone https://github.com/AlexTkDev/MyFlaskProject.git
cd myblog

Installing Dependencies

pip install -r requirements.txt

Running the Application

flask run

The application will be available at http://127.0.0.1:5000.

Using Bootstrap 5

Bootstrap 5 is used for styling the pages, included through base.html.

Application Routes

Home Page

Route: /

Description: Displays all posts.

Post Page

Route: /post/<post_id>

Description: Displays the selected post.

New Post

Route: /new

Description: Form for adding a new post.

Conclusion

This project is a simple blog on Flask that can be extended and modified to suit your needs. Flask provides flexibility and ease of development, and using templates and Bootstrap 5 allows for creating modern and responsive interfaces.

About

This project is a blog developed using Flask. It allows users to view posts, add new entries, and leave comments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published