- Questioner is a platform where people can see meetups, ask questions and attend meetups.
-
The project is managed using PivotalTracker board click here
-
To see the app documentation click here
-
To see API hosted on heroku click here
-
Clone the repository:
https://github.com/jonathanmusila/Questioner-v2.git
-
Navigate to the cloned repo.
1. Python3
2. Flask
3. Postman
After navigating to the cloned repo;
Create a virtualenv and activate it ::
create a directory
cd into the directory
virtualenv -p python3 venv
source venv/bin activate
Install the dependencies::
pip install -r requirements.txt
After activativating the virtualenv, run:
```
export APP_SETTINGS="development"
export FLASK_APP="run.py"
export FLASK_DEBUG=1
SECRET="iamsecretethenuseentheunknowntheundead"
```
Run:
pytest --cov-report term-missing --cov=app/api
Fire up postman and start the development server by:
$ flask run
Test the following endpoints:
EndPoint | Functionality |
---|---|
GET /meetups/upcoming | Gets all meetups as a list |
GET /meetups/upcoming/id | Gets a single meetup by id |
EndPoint | Functionality |
---|---|
POST /meetups/id/questions | Posts new question |
PATCH /meetups/id/upvote | Patches a upvote to a question |
PATCH /meetups/id/upvote | Patches a upvote to a question |
EndPoint | Functionality |
---|---|
DELETE /meetups/upcoming/id | Deletes a single meetup by id |
POST /meetups/upcoming | Posts new meetup |
EndPoint | Functionality |
---|---|
POST /auth/signup | Posts a sinup user |
POST /auth/login | Posts a login user |
- Jonathan Musila - Initial work - jonathanmusila
This project is licensed under the MIT License - see the LICENSE.md file for details
Fork the repo, create a PR to this repository's develop branch.