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
- Host: GitHub
- URL: https://github.com/castle/castle-java-example
- Owner: castle
- Created: 2016-12-13T20:02:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T10:08:05.000Z (over 2 years ago)
- Last Synced: 2025-04-02T12:52:11.333Z (about 1 year ago)
- Language: Java
- Homepage: https://castle.io
- Size: 56.6 KB
- Stars: 2
- Watchers: 23
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Castle Java Example
[](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/