An open API service indexing awesome lists of open source software.

https://github.com/castle/castle-java-example

Tomcat server using Castle Java library
https://github.com/castle/castle-java-example

Last synced: 4 months ago
JSON representation

Tomcat server using Castle Java library

Awesome Lists containing this project

README

          

# Castle Java Example

[![CircleCI](https://circleci.com/gh/castle/castle-java-example.svg?style=svg)](https://circleci.com/gh/castle/castle-java-example)

This is an example of integrating Castle with a standard Java web application.

Prerequisites
==============

* Maven
* Java 7+

Running the code
================

Set environment variables `CASTLE_SDK_API_SECRET` and `CASTLE_SDK_APP_ID`.

```
export CASTLE_SDK_API_SECRET=....
export CASTLE_SDK_APP_ID=...
```

Run the web server with:

```
$ mvn jetty:run
```

Navigate to:

http://localhost:8080/