Getting Started
Recommended Tools:
JDK 21
Installation
Add the Flyte repository and Twilight dependency to your build tool of choice.
Configuration
Certain features require configuration, which can be done via the Twilight class. To setup a Twilight class instance, you can use the twilight function shown below:
The above are default env settings, though the values can be changed.
If you useDifferentEnvironments, you'll need a .env file which contains the following:
This file determines whether to use your dev .env or your prod .env.
If you do not use this different environments feature, then it will just use the .env (or whatever you specify the name as with prodEnvFileName)
Throughout your project you can use Environment.get("VARIABLE") to retrieve a value from your environment variables.
Other features that can be configured in the Twilight class builder will have their own sections later in the README.
Libraries
Twilight is bundled with some useful libraries, some include:
Bson
Mongo Sync Driver
GSON