Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.15 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.15 KB

Build Status

About

It is backend part of GeoNotes project which is used for storing notes in the cloud and keep them available for you from everywhere.

Written in Kotlin using Spring Framework.

Deployment

  1. Set up mongodb server

  2. Set up parameters at application.properties

Options that have to be specified at file src/main/resources/application.properties:

spring.data.mongodb.host
spring.data.mongodb.port
spring.data.mongodb.database
spring.data.mongodb.authentication-database
spring.data.mongodb.username
spring.data.mongodb.password 
jwt.token-validity-duration # in hours
jwt.encoded-secret # your secret key, base64 encoded

# default values api.min-username-length=3 api.max-username-length=20 api.min-password-length=4 api.max-password-length=24 api.max-notes-per-request=30 api.max-title-length=20 api.max-text-length=1000 api.max-tags-total-length=1000

  1. Build docker image:
./gradlew bootBuildImage --imageName=geonotes/server
  1. Run image on server