Anudan backend is a light-weight core providing business services exposed via APIs to support Anudan Frontend.
Java
Postgres
Gradle
master.sql
.
DBO: postgres
with public
schema
psql -U <username> -p -d <database> < master.sql
git clone https://github.com/anudan-org/gms-service.git
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
gradlew bootJar
build/libs
and run java -jar gms-service-0.0.1-SNAPSHOT.jar