/Stackoverflow-lite

A lite version of stackoverflow

Primary LanguagePython

Build Status

Coverage Status

Maintainability

Stackoverflow-lite

This app is a small mimicking version of Stackoverflow where users can create accounts, log in, post questions, answer available questions, upvote questions

Installation & Set up

  1. Set up virtualenv

         virtualenv venv
  2. Activate virtualenv

         source venv/bin/activate
  3. Install dependencies

         pip install -r requirements.txt
  4. Run the app

        python run.py

Pivotal Tracker tasks

Pivotal Tracker Board Stories

Stackoverflow-endpoints API Endpoints

Method Endpoint Description
GET /api/v1/questions View All questions created in the app
POST /api/v1/questions Post a question
GET /api/v1/questions/<int:questionId> Fetch a specific question
POST /api/v1/auth/signup Register a user
POST /api/v1/auth/login Login a user
POST api/v1/questions/<int:questionId>/answers Post an answer to a question
DELETE api/v1/questions/<int: questionId> Deletes a question
PUT api/v1/questions/<questionId>/answers/<answerId> Mark an answer as accepted or update an answer.

Author: TevinThuku

Credits: Andela