/QUESTIONER-API

Questioner is a UI that hosts crowd-source questions for a meetup.

Primary LanguagePythonMIT LicenseMIT

QUESTIONER-API

Build Status Coverage Status Maintainability

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

Run in Postman

Pre-requisites

  1. Python3
  2. Flask
  3. Flask restful
  4. 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.