Auth Service
HomeAuth Service
Api Reference
  • Authentication
  • File Controller
  • User FCM Token
  • User Basic Info
Changelog Release
HomeAuth Service
Api Reference
  • Authentication
  • File Controller
  • User FCM Token
  • User Basic Info
Changelog Release
    • Introduction
    • Changelog Release
    • Local Development
    • Authentication
      • adminRegister
        POST
      • checkEmail
        POST
      • sendEmailVerification
        GET
      • verifyEmail
        POST
      • login
        POST
      • login
        POST
      • logout
        POST
      • sendRecoverPassword
        GET
      • recoverPassword
        POST
      • refreshToken
        POST
      • register
        POST
    • file-controller
      • streamPrivateData
        GET
    • internal-controller
      • getUserFcmTokenByUserId
        GET
      • getUserIntro
        GET
    • User
      • facebookCallbackUserInfo
        GET
      • updateUserAccount
        POST
      • deleteAllSessionOfUser
        DELETE
      • getUserBasicInfo
        GET
      • getUserIntro
        GET
      • updateUserIntro
        POST
      • testGetUserFromFirebaseByEmail
        GET
      • testGetUserFromFirebaseNoPassword
        GET
      • testGetUserFromFirebasePassword
        GET
      • getProfilePicture
        GET
      • storeUserFcmToken
        POST
      • updateFeedbackAskdoctor
        GET
      • updateUserIntroV2
        POST

    Local Development

    Need to prepare#

    Before proceeding with the setup, make sure you have the following installed on your local machine:
    Java 17
    Apache Kafka
    Redis
    Postgresql
    How to install Kafka ,Redis ,Postgresql & Java 17
    ServiceAccountKey.json
    Requires ServiceAccountKey.json for connection purposes to firebase (firebase auth and google storage)
    You should already be running :
    Apache Kafka
    Redis
    Core Service How to Run Core Services
    ServiceAccountKey.json
    Requires ServiceAccountKey.json for connection purposes to firebase (firebase auth and google storage)

    Dependencies#

    Java @17
    Spring Version @3.0.6
    firebase-admin @7.1.0
    driver postgresql @42.2.18
    spring-kafka @3.0.6
    spring-boot-starter-data-redis @3.0.6

    Step 1. Clone Project#

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

    Step 2. Configurations#

    update file aplication.properties in the auth service :
    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 Project Auth Service#

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