Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple example of a server-app based on arctic-core. It sets up a server with a REST API and a websocket. It is work in progress..

Building and running

Run script build.sh to build. It runs maven and pulls inn library code, including polaric-core

Run script start.sh. It will start a server instance listening on port 7077 (you may change this in the code).

Testing

A simple test Javascript app shows how to use the REST API. It has two endpoints 'foo' and 'bar' that just says hello. 'bar' is protected meaning you have to log in to access it. You can log in with username 'admin' and password 'polaric'.

The Javascript app uses the SubtleCrypto interface within the Web Cryptography API to implement the Arctic-HMAC protocol.

To test, point your browser to test/index.html

Feel free to experiment. A test of the websocket interface would be nice :) You may add users by editing the files in conf. To add or change passwords, htpasswd can be used.

About

Simple example of arctic-core application

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages