Skip to content
Question and answer webiste (stackoverflow clone)
HTML Python CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
Dockerfile
README.md
auths.py
base.py
handlers.py
loginhandler.py
main.py
requirements.txt
settings.py.sample
utils.py

README.md

Introduction

A simple question and answer website based on tornado + mongodb. Try to be a stackoverflow clone.

I wrote it on python 3.4 and didn't test with python 2.

Installation

  1. Setup mongodb and run it. I'd like to use docker.

     #docker pull mongo:latest
     #docker run --name mongo -p 27017:27017 -d mongo:latest
    
  2. Install required python3 modules.

     #pip3 install -r requirements.txt
    
  3. Setup settings and run.

     $cp settings.py.sample settings.py
     change the oauth2 related settings. Then
     $python3 main.py
    

Implemented Features

  1. OAuth2 login.
  2. Ask question and post answer (markdown editor); comment and vote supports
  3. Versioning of answers and questions
  4. A standalone mobile template

TODO

  1. Security:

    • need to care about script when adding transfered markdown to page, need to use security html (I heard that there is a subclass of html which is safe)
  2. Content

    • To save the mongdb space. Need to check if the edited new version is same as old version or only slight changes, if same, don't insert a new version, if slight changes, ..... I don't have a idea now.
  3. Solr integrated

You can’t perform that action at this time.