Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiminzajnr/micro_blog


https://github.com/kiminzajnr/micro_blog

css flask html mongodb python3

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# Micro_Blog

A simple microblogging application built using HTML, CSS, Python Flask, and MongoDB. The application allows users to keep track of everything they have learnt.

## Features

- Create Blog Entries
- View Blog Entries

## Technologies Used

- **Frontend:** HTML, CSS
- **Backend:** Python Flask
- **Database:** MongoDB

## Setup Instructions

### Prerequisites

- Python 3.x
- MongoDB
- pip

### Installation

1. **Clone the repository:**

```bash
git clone https://github.com/kiminzajnr/Micro_Blog.git
cd Micro_Blog

2. Create an environment
```
python3 -m venv .venv

3. Activate the environment
```
. .venv/bin/activate

4. **Install the required packages:**
```
pip install -r requirements.txt

5. **Set up environment variables:**
Create a `.env` file in the root directory of the project and add your MongoDB connection string:
```
MONGODB_URI=your_mongodb_uri

6. **Run the application:**
```
flask run

7. **OR run with gunicorn:**
```
gunicorn -b 127.0.0.1:5000 "app:create_app()"

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