StackOverflow-Lite
Project Overview
StackOverflow-lite is a platform where people can ask questions and provide answers.
Required Features
- Users can create an account and log in.
- Users can post questions.
- Users can delete the questions they post
- Users can post answers
- Users can view the answers
- Users can accept an answer out of all the answers to his/her queston as they preferred answer
Challenge 1 - Create UI Templates
Complete UI Pages
- Signup and signin pages
- Questoins list page
- View questions and Answers page
- Post question page
- User profile page
- Host UI template on github pages
Hosted on GitHub pages
https://winniejerop.github.io/StackOverflow-Lite/
Installation
To install:
- git clone https://github.com/winniejerop/StackOverflow-Lite.git
- cd StackOverflow-Lite
- virtualenv venv
- venv\Scripts\activate (Windows OS)
- install requirements.txt
- python index.py
Testing
pytest unittest
Challenge 2 - Setup API Endpoints
Api Endpoints
Installation
To install:
- git clone https://github.com/winniejerop/StackOverflow-Lite.git
- cd StackOverflow-Lite
- virtualenv venv
- venv/Scripts/activate (Windows)
- pip install requirements.txt
- python run.py
Api Endpoints
/api/v1/questions (get all questions)
/api/v1/questions (post a question)
/api/v1/questions/001
/api/v1/questions/1:001/answer
Challenge 3 - Setup API endpoints and secure them using JWT
Installation
To install:
- git clone https://github.com/winniejerop/StackOverflow-Lite.git
- cd StackOverflow-Lite
- virtualenv venv
- venv/Scripts/activate (Windows)
- pip install requirements.txt
- python run.py
Api Endpoints
POST /api/v1/auth/signup
POST /api/v1/auth/login
GET /api/v2/questions
GET /api/v2/questions/001
POST /api/v2/questions/1:001/answer
PUT /api/v2/questions/001/answers/