StackOverflow-lite is a platform where people can ask questions and provide answers.
These instructions will get you a copy of the project up and running on your local machine for development and testing purpose
You need to have the following installed.
-
Clone the repository
git clone https://github.com/andrewhingah/stackoverflow-lite.git
-
Change directory
cd stackoverflow-lite
-
Checkout to developAPI branch
git checkout developAPI
-
To test API locally, set up a virtual environment in the base project folder
python -m venv venv
-
Activate the virtual environment
venv\Scripts\activate
-
Install dependecies
pip install -r requirements.txt
-
Run tests
pytest
ornosetests --exe --with-coverage --cover-package=api
-
Test the endpoints on postman
For instance to post a new question you send a request to
http://127.0.0.1:5000/api/v1/questions
A sample post question request should be as shown below
{ "question":"What is an API?" }
- Python 3.6
- Flask
-
Fork it from
https://github.com/andrewhingah/stackoverflow-lite.git/fork
-
Create your feature branch
git branch somefeature
git checkout somefeature
-
Commit your changes
git commit "Add some feature"
-
Push to the branch
git push origin somefeature
-
Create a new pull request
Andrew Hinga [email protected]