Anudan Backend

Anudan backend is a light-weight core providing business services exposed via APIs to support Anudan Frontend.

Before Getting Started

Setting up Anudan database

Quick start - Environment Setup

  1. Run git clone https://github.com/anudan-org/gms-service.git
  2. Navigate to cloned project folder
  3. Create application.yaml under src/main/java/resources and set up as shown below
    spring:
    profiles:
    active: local
    jpa:
    properties:
    hibernate:
    jdbc:
    lob:
    non_contextual_creation: true
    database-platform: org.hibernate.dialect.PostgreSQL9Dialect
    upload-file-location: [path to document storage]
    supported-file-types: pdf,xls,xlsx,doc,docx,ppt,pptx
    use-captcha: false
    servlet:
    multipart:
    max-file-size: 200MB
    max-request-size: 200MB
    location: [path to temporary storage>]
    send-mail: true[see setting up email server
    timezone: [Timezone Ex: Asia/Kolkata
    logging:
    level:
    org.codealpha: info
    file: gms.log
    ---
    spring:
    profiles: local
    send-mail: false
    recaptcha-secret-key: [recaptcha secret if using one>]
    datasource:
    url: jdbc:postgresql://host>:port/database
    username: database username>
    password: database password>
    initialization-mode: always
    platform: pg
    jpa:
    database: postgresql
    hibernate:
    ddl-auto: none
    jackson:
    default-property-inclusion: NON_NULL
    mail:
    host: [mail SMTP server]
    port: [mail port]
    username: [mail username]
    password: [mail password]
    properties:
    mail:
    smtp:
    auth: true
    starttls:
    enable: true
    server:
    servlet:
    context-path: /api
  4. From project's root folder run gradlew bootJar
  5. Navigate to build/libs and run java -jar gms-service-0.0.1-SNAPSHOT.jar

result-matching ""

    No results matching ""