Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

SaltyNote/saltynote-service-kotlin

Repository files navigation

saltynote-service-kotlin

Check zhouhao/cloudflare-worker-saltynote for further updates. Hope for budget saving.

Gradle Test Codacy Badge Website

Bring SaltyNote Service into Kotlin

Overview

This is the backend service for saltynote. It uses JWT for authentication(access token & refresh token). As high-level, this service provides APIs for:

  1. User (signup, login, token refresh, token cleanup, password reset, account delete)
  2. Note (create, update, fetch and delete)

overview

Get Started

This is a standard spring boot project with Maven, so you can use generic maven command to run it. While the simplest & quickest way is to run ./start.sh.

Swagger UI will be available at http://localhost:8888/swagger-ui.html (Screenshot for User APIs) swagger-ui

Prerequisite

  1. Java 17 (due to Spring Boot v3)
  2. Docker (docker compose) for setting up development dependencies, e.g. database, redis, etc.
  3. IDE (Eclipse or Intellij)

Configuration

  1. The service relies on database to store user and note information. In development env, you can run docker compose up to start mongo(storage) and redis(cache) locally(add -d if you want start it as “detached” mode).
  2. This service also need smtp service to send email(Note: this is optional now, if not setup, the email payload will be logged(code).).

License

saltynote service is licensed under MIT - LICENSE

About

The Kotlin version of SaltyNote Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages