StackOverflow-lite is a platform where people can ask questions and provide answers
- Home page
- Create an account
- Login into your account
- Post a question
- Fetch all questions
- Fetch a single question
- Edit a specific question
- Delete a specific question
- Post an answer to a question
- Python 3.6 version
Downlaod / clone the project to your local computer by:
- Download the zip file of this repository.
- Unzip it and navigate into the StackOverflow-lite directory.
Create a virtual environment
$ virtualenv venv
Activate the environment
$ venv/bin/activate
Install package requirements to your environment
$ pip install -r requirements.txt
Create a.env file in your StackOverflow-lite root directory and add:
-
$ venv/bin/activate
-
$ export FLASK_APP="run.py"
-
$ export SECRET="any-character-or-STRING-YOU-PREFER"
-
$ export APP_SETTINGS="development"
To set up testing environment
-
$ pip install nose
-
$ pip install coverage
Test | Endpoints | HTTP VERBS |
---|---|---|
Post a question | /api/v1/questions | POST |
View all question | /api/v1/questions | GET |
Get single question | /api/v1/questions/ | GET |
Post an answer to a question | /api/v1/questions//answers | POST |
The API is hosted on Heroku
Andela Bootcamp - cohort 31