Core Service
HomeCore Service
Playground
  • Child
  • Daily Notes
  • Fetus Image
  • File
  • Migration
  • Milestone
  • Mood Tracker
  • Mother Weight
  • Pregnancy
Changelog Release
HomeCore Service
Playground
  • Child
  • Daily Notes
  • Fetus Image
  • File
  • Migration
  • Milestone
  • Mood Tracker
  • Mother Weight
  • Pregnancy
Changelog Release
    • Introduction
    • Changelog Release
    • Local Development
    • Child
      • getChildList
        GET
      • updateProfile
        POST
      • createFirstBaby
        POST
      • deleteBaby
        DELETE
    • daily-note-controller
      • get list of daily notes
        POST
      • delete daily note by id
        DELETE
      • create new daily note
        POST
      • update existing daily note
        POST
    • fetus-image-controller
      • getFetusImageByWeekV2
        GET
      • getFetusImageByWeek
        GET
    • file-controller
      • streamPrivateData
        GET
    • migration-controller
      • migrateChild
        GET
      • migratePregnancy
        GET
      • migratePregnancyCheckup
        GET
      • migratePregnancyByEmail
        GET
      • migrateUsgScan
        GET
    • milestone-controller
      • get user's list of baby milestones by baby id and month
        GET
      • update user's list of baby monthly milestones
        POST
      • get user's list of pregnancy milestones by week
        GET
      • update user's list of pregnancy weekly milestones
        POST
    • mood-tracker-controller
      • get mood history by pregnancy id, start date, and end date
      • get monthly mood history by pregnancy id and month
      • create / update mood data
      • get weekly mood history by pregnancy id and week
      • delete mood data by id
    • mother-weight-controller
      • get mother's weight by pregnancy id, mode, start date, and end date
      • get mother's weight data by pregnancy id and date
      • get mother's weight monthly report by pregnancy id
      • create / update mother's weight data
      • delete mother's weight by id
    • pregnancy-controller
      • updateDueDate
      • getPregnancyDetail
      • createFirstPregnancy
      • getPregnancyHistory
      • updateStatus
      • createFirstPregnancy
      • deletePregnancy

    Local Development

    Need to prepare#

    Java 11
    Kafka
    Redis
    Postgreql
    How to install Kafka & Redis
    ServiceAccountKey.json
    Requires ServiceAccountKey.json for connection purposes to google storage

    Dependencies#

    Java @11
    spring version @2.3.9.RELEASE
    postgresql @42.2.19.jre7
    spring-kafka @2.6.6
    spring-boot-starter-data-redis @2.3.9.RELEASE
    google-api-client @1.31.2

    Step 1. Clone Project#

    Clone repository auth service , use branch development : https://github.com/pt-asa-bestari-citta/diarybunda-core-api.git

    Step 2. Configurations#

    update file aplication.properties
    Example file applicaton.properties :
    Update Configurations application.properties
    change the spring.datasource variable, change it according to the postgree database connection that we install in local development.
    Change the firebase.v2.file variable, change it according to the location of the serviceAccountKey.json file stored in local development.
    change the spring.kafka.bootstrap-servers variable to match the kafka connection installed in local development.
    change the spring.data.redis variable to match the redis connection installed in local development.
    change the google_application_credentials variable with the serviceAccountKey.json location stored in local development, google_application_credentials is used to connect to google storage, if google_application_credentials is already set in our local development global variable environtments, point google_application_credentials to the location of the saved serviceAccountKey.json

    Step 3. Run Core Service#

    Modified at 2023-07-25 06:07:41
    Previous
    Changelog Release
    Next
    getChildList
    Built with