yangman946 / SimpleStack

SimpleStack is a web application that allows developers to easily find solutions to their problems.

Home Page:https://simplestack.pythonanywhere.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimpleStack

simple stack

Simple Stack

About

Welcome to SimpleStack.

SimpleStack is a Search Engine dedicated to solving your programming issues. It searches the web - using Stack Exchange - for suitable solutions.

SimpleStack cuts through all the redundancies, giving you only what matters, through overcoming bugs and issues by shaping the your input to yield clear and efficient search results with the aid of AI.

SimpleStack is currently in it's Beta testing stage, please give feedback here.

Cloning

$ git clone https://github.com/yangman946/SimpleStack

Installation guide

There are two ways to access this project:

Access directly via Web URL

  1. Visit https://simplestack.pythonanywhere.com/ on your browser.

Run Django Server

If you wish to run SimpleStack locally:

  1. Make sure python is installed and added to path

simple stack

  1. open command prompt

  2. Clone this project to your desired location: $ git clone https://github.com/yangman946/SimpleStack or download the source code:

simple stack

  1. Go to the project directory containing manage.py $ cd [your desired location]/simplestack/website/simplestack

simple stack

  1. Get Django: $ pip install django

  2. Get virtual environment: $ pip install virtualenv

  3. run $ venv\Scripts\activate to activate virtual environment

  4. run $ python manage.py runserver to run server

  5. Visit the locally hosted site (address shown on command prompt)

see online help/help guide here

Troubleshooting

module not found error - Make sure the version of pip you are using is up to date and python is added to path

Unable to clone repository? - try downloading the repository manually as shown in step 5.

Unable to activate venv? - ensure venv is installed at the correct location: at the same folder manage.py resides in.

Unable to access the provided URL - the server may be down, wait some time or give feedback here

see trouble shooting for online help/help guide here

The algorithm

Although websites like Google can also find results to programming issues, most developers, mainly beginners, struggle to find relevant information.

What makes SimpleStack Special?


1) SimpleStack will use the given search query to find a list of relevant results and compare each to the following criteria:

    criteria:                                   good result:
    - will sort by score: vote count            [high]          
    - is answered                               [yes]      
    - answer count                              [high]    
    - view count                                [high]          
    - count of common tags                      [high]          
    - AI relevancy                              [high]
    - detected language                         [yes]
    - detected question type                    [yes]     

2) SimpleStack will unpack all answers and output the top answer to the user. 

3) Each subsequent answer is ranked according to a score derived from the criteria above. 

4) to fetch answers, an API call is made, getting the answer as JSON

Created by Clarence Yang 2021 for the HSC SDD major project.

About

SimpleStack is a web application that allows developers to easily find solutions to their problems.

https://simplestack.pythonanywhere.com/


Languages

Language:HTML 49.5%Language:Python 43.6%Language:CSS 6.7%Language:Batchfile 0.2%