Part of NAVFITOnline project: client-cert-auth, navfit99-js, and navfit99-server
Use NAVFITOnline at https://navfit99.github.io. \
- Install Maven.
- You can extract the Maven folder to your
\Program Filesor\bindirectory. - Make sure the destination folder is included in your
$PATHenvironment variable.
- Get code with
git clone https://github.com/ansonl/navfit99-js.gitor use Clone or download button above. - Set
$PORT,$NAVFIT_AES_KEY, and$REDIS_URLenvironment variables.
$PORTis the integer port number to bind on.$NAVFIT_AES_KEYis a 128 bit (16 character) key that is used to by the server program to encrypt NAVFIT data at rest on Redis storage.$REDIS_URLis connection URL for your Redis storage instance.
- Compile the project by running
mvn clean packagein the root project directory (the project folder). - Run the compiled JAR with
java -jar target/navfit99-server-1.0-jar-with-dependencies.jar.
- If you use Heroku for hosting,
$REDIS_URLis provided for your instance if you use Heroku's Heroku Redis addon.\- **Free Heroku instances do not support SSL connections and stunnel between the free instance and Heroku Redis instance. **
- See here for more information.
$NAVFIT_AES_KEYwill be truncated to 128 bits if it is longer than 128 bits.- Getting Maven setup didn't lead me to any good resources or examples. If you aren't interested in this project but want a drop in Maven configuration
pom.xmlfile for starting your own project, you may find this project'spom.xmluseful. Just update the package identifier, update dependency links, and you will have a working JAR that includes dependencies.
All work in this project is copyrighted by Anson Liu unless specified to be created by another author or otherwise. Work on this project by Anson Liu is made available under MIT License with attribution required.
This project was made possible because it builds upon great Java packages created by others. Some notable packages are listed below and I have left comments in the code for many other acknowledgements.
