A Medium clone website built using Flask, PostgreSQL, flask_pgsql, and Flask-Login.
At this time for login username and email are same and code(otp) is just password for login
- User Authentication: Users can sign up, log in, and log out securely using Flask-Login.
- Blog Post Creation: Authenticated users can create, edit, and delete their own blog posts.
- Browse and Read Articles: Users can browse through a list of articles and read them.
- Responsive Design: The website is designed to be responsive and accessible on various devices.
- Flask: A lightweight web framework for Python.
- PostgreSQL: A powerful open-source relational database management system.
- Flask-Login: Provides user session management for Flask applications.
- Flask-PGSQL: My custom API framework for PostgreSQL interactions.
-
Clone the repository:
git clone https://github.com/thefcraft/mediumClone.git cd medium-clone
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # For Linux/macOS # Or venv\Scripts\activate # For Windows
-
Install dependencies:
pip install -r requirements.txt
-
Set up the database:
- Create a PostgreSQL database.
- Update the database configuration in
config.py
.
-
Run the application:
python app.py
-
Access the application:
Open your web browser and go to
http://localhost:5000
.
Contributions are welcome! Please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.