This is a simple blog app built with Streamlit and Python. The app allows you to view, add, search, and manage blog posts.
- Home: Welcome page with a brief introduction.
- View Posts: See all the posts in the blog.
- Add Post: Add a new post to the blog.
- Search: Search for a post by title or author.
- Manage: Delete posts or view some statistics.
-
Clone the repository:
git clone https://github.com/yourusername/your-repository.git cd your-repository
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory of your project and add any necessary environment variables. -
Run the Streamlit app:
streamlit run app.py
- Open the app in your browser using the link provided by Streamlit.
- Use the sidebar to navigate through different sections.
- Add, view, search, and manage posts as per your requirement.
The app uses SQLite for storing blog posts. The database file (blog.db
) is created automatically in the root directory.