StackOverflow-lite is a question and answer application that provides users with the ability to ask questions and have other users answer the questions
Stackoverflow-lite is a platform where people can ask questions and provide answers
- Text editor where we write our project files. (VScode)
- Python
- Flask Python Framework -Server-side framework
- Pytest - a Python Testing Framework
- Pylint - a Python linting library
- Postman -Application to test and consume endpoints
- PEP8 - Style guide
REQUEST | ROUTE | FUNCTIONALITY |
---|---|---|
GET | /api/v1/questions/ | Fetches all questions |
POST | /api/v1/questions/ | Posts a question |
GET | /api/v1/questions/< questionId> | Fetches a specific question |
POST | /api/v1/questions/< question_id>/answer/ | Post an answer to a question |
POST | /api/v1/questions/< question_id>/< answer_id>/comment | Post a comment to answer |
POST | /api/v1/questions/< question_id>/< answer_id>/upvote | Upvote answer |
POST | /api/v1/questions/< question_id>/< answer_id>/downvote | Downvote answer |
- Flask-Python
-
Clone this repository to your local PC
git clone https://github.com/Toskgreg/StackOverflow-Lite_api.git
-
Create a virtual environment to run application specific dependencies
$ virtualenv venv
$ source venv/bin/activate
$ pip install flask
-
To run the app
python run.py
-
To run tests
pytest tests/test.py
Toskin Gregory