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.
- Python3
- Flask
- Postman
- Pytest
- Git
- Python3 pip
-
Clone the repo
https://github.com/kburudi/the-Questioner/
-
Checkout delelop branch
git checkout develop
-
python3
sudo apt-get install python3
-
install python3 pip
sudo apt-get install python3-pip
-
install vitual environment
pip3 install virtualenv
-
checkout develop branch
git checkout develop
-
create the virtual environment
virtualenv env
-
Activate the vitualenv in the parent directory of your "env"
source env/bin/activate
-
Install requirement
pip install -r requirements.txt
-
Run the app
python3 run.py
-
Tsting
python3 -m pytest
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 |
Trevor Kurland
- Andela-Workshops
- Team-mates
- Andela Bootcamp