This is a simple Flask application for creating a microblog. Users can post short entries, and the app displays them on the homepage with formatted dates.
- Create new blog entries
- Display existing entries with formatted dates
- Python 3.6 or later
- Flask
- pymongo
- Flask-dotenv (optional, for managing environment variables)
- MongoDB
Setup Clone this repository:
git clone https://github.com/EbiScott/Practice-Blog/
pip install -r requirements.txt
Create a .env file in the project root directory and add your MongoDB connection URI:
MONGODB_URI="mongodb://your_mongodb_host:port/"
Replace "your_mongodb_host:port" with your actual MongoDB connection details.
- Create a static directory in the project root to store your CSS file (style.css).
Running the App
python app.py
- Access the app in your web browser at
http://127.0.0.1:5000/
by default.
Feel free to fork this repository and contribute your own improvements!
This project is licensed under the MIT License. See the LICENSE file for details.