QUESTIONER-API
Brief Description
Questioner is a UI that hosts crowd-source questions for a meetup.
Heroku link
[(https://kquestioner-api--heroku.herokuapp.com/)]
Pivotal Tracker Board
[https://www.pivotaltracker.com/n/projects/2236318]
Deploy
Pre-requisites
- Python3
- Flask
- Flask restful
- Postman
Getting started
Clone this repository [https://github.com/MaggieKimani1/QUESTIONER-API.git]
Navigate to the cloned repository
cd Questioner-API-v1
Installation
Create a virtual environment
virtualenv -p python3 venv
Activate the virtual environment
source venv/bin/activate
Install git
sudo apt-get install git-all
Switch to 'develop' branch
git checkout develop
Install requirements
pip install -r requirements.txt
Run the application
python3 run.py
Testing
Run this command on the terminal
pytest
Endpoints
Endpoint | Functionality |
---|---|
POST/meetups | Create a meetup record |
GET/meetups/ | Fetch a specific meetup record |
GET /meetups/upcoming/ | Fetch all upcoming meetup records |
POST /questions | Create a question for a specific meetup |
PATCH /questions/<question_id>/vote | Vote (increase votes by 1) for a specific question |
POST /meetups//rsvps | Respond to a meetup(RSVP) |
Authors
MAGGIE KIMANI
License
This project is licensed under the MIT license.