Skip to content

fabioesposito/survey-gorilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Fabio Esposito
Aug 18, 2017
3619dc4 · Aug 18, 2017

History

7 Commits
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017
Aug 18, 2017

Repository files navigation

Survey Gorilla

Survey monkey clone using vertx

Components

survey-api API for all frontends

survey-common Shared VOs used by all services

survey-write Handle all write-side requests (POST/PUT/DELETE)

survey-read Answer all read-side requests (GET)

survey-event Log all events happening on the system

How to build

./build.sh

How to run

Option 1: fatjar

java -jar survey-api/build/libs/survey-api-1.0-SNAPSHOT-fat.jar

java -jar survey-read/build/libs/survey-read-1.0-SNAPSHOT-fat.jar

java -jar survey-write/build/libs/survey-write-1.0-SNAPSHOT-fat.jar

java -jar survey-events/build/libs/survey-events-1.0-SNAPSHOT-fat.jar

Option 2:

docker-compose up

How to use

curl -X GET \ http://localhost:8080/api/polls

curl -X POST \ http://localhost:8080/api/polls \ -H 'content-type: application/json' \ -d '{ "question" : "When!??????", "options" : { "1": "First option", "2": "another option" } }'

curl -X POST \ http://localhost:8080/api/polls/1/answers \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'postman-token: 236ef2c5-c62d-0ff5-2d17-b16e81323076' \ -d '{ "pollID" : "1", "answers" : [1,2] }'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published