This is a basic application that will test out kotlin and spring integration. The intent of the is to create a rest service that will generate a basic UUID and persist a message on mongo for later retrial with the UUID.
- Setup a mongoDB instance or create one online for free using it's free Mongo Lab
- Set the environment variables listed below to the appropriate values
- Run the application using the command below
gradle bootRun
Environment Variable | Description | Example |
---|---|---|
registrationMongoPassword | Password used for mongodb user | pass123 |
registrationMongoUserName | Username used for mongodb user | UN123 |
registrationMongoDatabase | Mongodb database name | testMongo |
registrationMongoHost | mongodb host | something.mlab.com |
registrationMongoPort | mongodb port | 1235 |
The tests use an embedded mongoDb instance and can be run with no external setup. Execute the command below to run the test.
gradle test