Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Boilerplate Scalatra API with Json, Swagger Documentation, and Okta Authentication

NotificationsYou must be signed in to change notification settings

SaymV/scalatra-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a starter application for anyone who wants to write an API layer usingScalatra. Why start here?If you're serious about API development, you'll have configs to load, JSON will be necessary, and security will be paramount.Instead of using theScalatra project generator,clone this repository for a head start.This app demonstrates how to return JSON, verify the origin and authorization Token.

Application Features

Instead of the vanilla scalatra project generator, use this project to gain the following functionality out of the box:

Configuration

In thesrc/main/resources folder, there is aresource.conf file that looks like this:

base_url ="localhost"okta {domain:"yourOktaDomain"audience:"api://default"timeout:1000}

Copy the contents of that file, name itapplication.conf, and replace your Okta domain.

Build & Run

$cd back-end$ sbt> jetty:start> browse

Ifbrowse doesn't launch your browser, manually openhttp://localhost:8080/ in your browser.

If actively developing, use to have sbt watch for changes.

~;jetty:stop;jetty:start

Additional Notes

Okta has great tutorials around Spring and generic java. I thought it might be useful to have a scala based example.

Contributing

Feel free to make a pull request if you add basic functionality that would help a fledgling APIon its way to being production ready.

:)

About

Boilerplate Scalatra API with Json, Swagger Documentation, and Okta Authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp