Artikel Service
HomeArtikel Service
Api Reference
  • Artikel Controller
  • File Controller
  • Migration Controller
  • Milestone Controller
  • Q&A Controller
Changelog Release
HomeArtikel Service
Api Reference
  • Artikel Controller
  • File Controller
  • Migration Controller
  • Milestone Controller
  • Q&A Controller
Changelog Release
    • Introduction
    • Changelog Release
    • Local Development
    • Artikel Docs
      • Artikel Controller Docs
      • File Controller Docs
    • article-controller
      • getArticleDiscovery
        GET
      • get user's list of viewed / liked articles
        GET
      • getTaxonomies
        GET
      • get list of featured articles by mode
        GET
      • getListSubCategory
        GET
      • get list of curated article by week
        GET
      • bulk index all published article to elastic search
        GET
      • delete all indexed article in elastic search
        DELETE
      • like / unlike an article
        POST
      • get article by slug and increase read counter
        GET
      • readDetailArticleV2
        GET
      • readDetailArticle
        GET
      • getWeeklyRecomendedArticle
        GET
      • get list of articles related to specific article by slug
        GET
      • get list of articles related to specific article by id
        GET
      • search (return list of articles related to) in all user's liked articles by term
        GET
      • search (return list of articles related to) in all articles by term
        GET
      • get url for sharing an article by id
        GET
      • get list of all article slug
        GET
      • getArticleOverviewSubCategory
        GET
      • getWeeklyTipsArticle
        GET
      • get list of user's activity (view, like, and share article)
        GET
      • getArticleByCategoryParent
        GET
      • getWeeklyRandomText
        GET
    • file-controller
      • streamPrivateData
    • migration-controller
      • testMigrateDev
    • milestone-controller
      • get list of baby milestones by month
      • get list of pregnancy milestones by week
    • question-and-ask-controller
      • get list of all specialists
      • create new user's question
      • update user's question
      • get list of all user's questions
      • get user's question detail by id

    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
    ElasticSearch
    Postgresql
    Mysql
    How to install Kafka ,Redis ,Postgresql & Java 17
    ServiceAccountKey.json
    Requires ServiceAccountKey.json for connection purposes to google storage
    You should already be running :
    Apache Kafka
    Redis
    Elasticsearch
    Core Service How to Run Core Services

    Dependencies#

    Java @11
    spring version @2.3.9.RELEASE
    postgresql @42.2.18.jre7
    mysql-connector-java @8.0.23
    spring-kafka @2.6.6
    spring-boot-starter-data-redis @2.3.9.RELEASE
    spring-data-elasticsearch @4.0.7.RELEASE

    Step 1. Clone Project#

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

    Step 2. Configurations#

    update file aplication.properties in the article service :
    Example file applicaton.properties :
    change the spring.datasource variable, change it according to the postgree database connection that we install in local development.
    change the spring.wp-datasource variable, change it according to the mysql 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.

    Step 3. Run Project Article Service#

    Modified at 2023-07-26 00:54:18
    Previous
    Changelog Release
    Next
    Artikel Controller Docs
    Built with