StackOverflow-lite is a platform where people can ask questions and provide answers
| Endpoint | Description | HTTP-verb |
|---|---|---|
| /api/v1/register | Register new user | POST |
| /api/v1/login | Login the user using this endpoint | POST |
| /api/v1/logout | Logout the user from the system | POST |
| /api/v1/users | Get all users | GET |
| /api/v1/question | Post a question | POST |
| /api/v1/question/id | Get question by id | GET |
| /api/v1/questions | Get all questions | GET |
| /api/v1/answer/questionId | Post an answer | POST |
| /api/v1//answers/questionId | Get all answers for a question | GET |
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
A few requirements to install, run and test this project.
cd path/to/directory-your-directory
-
git clone https://github.com/evamaina/StackOverflow-lite -Install virtual environment
-
cd to ride-my-way-api and execute the following commands:
- $ virtualenv venv --python=python3
- $ source venv/bin/activate
- $ pip install -r requirements.txt
- $ pip install pytest
-
To run tests, do:
- $ pytests
-
Then run the app by executing:
- $ python run.py
-
Install and open postman to test the various endpoints
Manually open the index.html file in your preferred browser. Navigate through the pages with the links provided.
- HTML
- CSS
- JavaScript
- python
Eva Maina