abrenaut / sampleapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample app

Simple survey app

Running locally

Requirements

Start the service and a postgres database

make up

Run tests

make test

Deploy the application

Publish the Docker image to Dockerhub

make release

Deploy the application

make deploy

Example requests

Create a survey

curl -X POST http://localhost:5000/survey -d '{"title": "Survey 1"}' -H "Content-Type: application/json"

Get the list of existing surveys

curl -X GET http://localhost:5000/survey

About


Languages

Language:Python 73.5%Language:Makefile 18.2%Language:Mako 5.1%Language:Dockerfile 2.8%Language:Shell 0.4%