Skip to content

sreeragksgh/groups-service

 
 

Repository files navigation

sunbird-groups

This is the repository for Sunbird user groups system micro-service. It provides the APIs for user groups functionality of Sunbird.

Developers

Please run scripts/setup.sh and setup git hooks to format your code while submission.

Pre-requisites

  1. Make a copy of setVars.sh.sample to list all the environment vars needed.
  2. Change all-actors/application.conf thisActorSystem to your own actor system name
  3. Use the same string in /all-actors/Application.java in the field actorSystemName
  4. Change the play secret key value in /play-service/application.conf - play.http.secret.key

Build

  1. Execute clean install mvn clean install

Run

  1. For debug mode,
    cd play-service
    mvn play2:dist
    mvn play2:run

  2. For run mode, cd play-service
    mvn play2:dist
    mvn play2:start

Verify running status

Hit the following Health check curl command

curl -X GET \ http://localhost:9000/health \ -H 'Postman-Token: 6a5e0eb0-910a-42d1-9077-c46f6f85397d' \ -H 'cache-control: no-cache'

And, a successful response must be like this:

{"id":"api.200ok","ver":"v1","ts":"2019-01-17 16:53:26:286+0530","params":{"resmsgid":null,"msgid":"8e27cbf5-e299-43b0-bca7-8347f7ejk5abcf","err":null,"status":"success","errmsg":null},"responseCode":"OK","result":{"response":{"response":"SUCCESS","errors":[]}}}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.6%
  • Other 0.4%