Skip to content

ceexon/Questioner-Api-V2

Repository files navigation

Questioner

The questioner app is a web that allows users who are attendees of a meetup to be able to raise questions they would like to discuss in the meetup. The questions are then voted on by fellow users to determine which has more priority over the others. The question with most votes is deemed as one with a highest priority.

Badges

Build Status Coverage Status Maintainability

What is required

  • Python3
  • Flask
  • Postman
  • Pytest
  • Git
  • Python3 pip

How to get started

  1. Clone the repo

    https://github.com/kburudi/the-Questioner/

  1. Checkout delelop branch

    git checkout develop

First install

  1. python3

    sudo apt-get install python3

  2. install python3 pip

    sudo apt-get install python3-pip

  3. install vitual environment

    pip3 install virtualenv

  4. checkout develop branch

    git checkout develop

  5. create the virtual environment

    virtualenv env

  6. Activate the vitualenv in the parent directory of your "env"

    source env/bin/activate

  7. Install requirement

    pip install -r requirements.txt

  8. Run the app

    python3 run.py

  9. Tsting

    python3 -m pytest

Endpoints to use on postman

Endpoints Functions
POST/api/v2/signup create new user
POST/api/v2/login sign in to your account
POST/api/v2/meetups create meetups
GET/api/v2/meetups get all meetupss
GET/api/v2/meetups/<id> get a specific meetups
GET/api/v2/meetups/upcoming get all upcoming meetups
POST/api/v2/questions add question for a meetups
GET/api/v2/questions view all questions for a given meetups
POST/api/v2/meetups/<id>/rsvp respond to meetups invitation
PATCH/api/v2/questions/<id>/upvote upvote a question
PATCH/api/v2/questions/<id>/downvote downvote a question
POST/api/v2/questions/<id>/ view a specific question
POST/api/v2/questions/<id>/comment comment on a question
GET/api/v2/questions/<id>/comment view all comments on a question
DELETE/api/v2/meetups/<id> delete a meetups

Authors

Trevor Kurland

Acknowledgements

  1. Andela-Workshops
  2. Team-mates
  3. Andela Bootcamp

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages