/StackOverflow-Clone

Re-implemented Stackoverflow web based application in python programming with flask framework and MVC architecture. Worked with MYSQL database and sqlalchemy ORM model to handle data. It supports functionalities like ask question, post answer, upvote, downvote, views, answer later, post comment, search.

Primary LanguageHTML

Stackoverflow

This repository contains code for clone of Stackoverflow site made using

  • Python Flask
  • MySQL as database
  • SQLAlchemy for ORM
  • HTML, CSS and Bootstrap for frontend

Prerequisites

sudo apt install python2.7 python-pip
pip install Flask
pip install flask-mysql
pip install flask-sqlalchemy
pip install PyMySQL

Database setup

  • install and setup mysql (click here)
  • mysql username and password should be set to 'root'
  • use data.sql to import the schema, tables and data

Steps to run

  • python home.py (from the directory of this project)
  • open localhost in browser to see the website

Features supported

  • Ask question (with summernote editor)
  • Answers (with summernote editor), comments to questions
  • Upvote, downvote to questions and answers
  • Save questions to Answer Later
  • Bookmark answer
  • Search questions by tag, title
  • List of questions of a particular tag when clicked on it
  • View and edit profile