Pair programming backend
1.8K
This is the database and web display for the Better Together project. The purpose of this project is to log and encourage pair programming in a team by getting rewarded when reaching a set number of pair programming events.
The following environment variables must be defined in the Dockerfile:
Install Docker and build an image
docker image build -t <name_of_image>:<name_of_tag> .
Start a running container associated with the image:
docker run -p 80:80 <name_of_image>:<name_of_tag>
All communication with the REST api and webview must provide a token parameter to validate.
Example:
http://0.0.0.0/api/user/all?token=EXAMPLE
You will use the app from BetterTogether to add pairs when you have pair programmed. Everything else can be accessed through curl.
Changing thresholds:
curl -X put <yourlink>/api/threshold/update/<reward_type>/<your threshold>
Using rewards:
curl -X put <yourlink>/api/reward/use/<reward_type>
Change lifetime of edges in webview:
Add a url parameter after the token representing the lifetime of the edges in number of days as follows:
http://0.0.0.0?token=EXAMPLE&days=20
Reset database:
Uncomment db.drop_all() in set_up_db() in routes.py
Content type
Image
Digest
Size
68.6 MB
Last updated
about 8 years ago
docker pull reeedonly/bettertogetherback-end:master