There are a number of different pieces that make up the Wombats platform.
- Wombats Server / API (Current Repository)
- Wombats web client
- Wombats web canvas application
This guide is responsible for getting your development environment setup to work with the Wombats Server / API.
- Datomic Free.
- Download Note: There is also a homebrew formula for Datomic (
brew install datomic)
- Download Note: There is also a homebrew formula for Datomic (
- Boot.
-
Start datomic (Depending on your setup the start command may vary)
- Create a file called
free-transactor.propertiesin the datomic directory with the following properties
protocol=free host=localhost port=4334 memory-index-threshold=32m memory-index-max=256m object-cache-max=128m data-dir=~/local/datomic/data # or any dir log-dir=~/local/datomic/log # or any dir- Run datomic with the following command:
datomic_dir/bin/transactor datomic_dir/free-transactor.properties - Create a file called
-
Create a GitHub OAuth Application here.
- Name can be anything
- Homepage URL is
localhost:3449 - Callback URL is
http://localhost:8888/api/v1/auth/github/callback - Once the application is created, keep the page open, you will need the client-id and the client-secret for the next step.
-
Make a copy of the config_empty.edn file located at
wombats-api/config/config-empty.ednnamedconfig.edn- Place the file in either
~/.wombats/config.ednor inwombats-api/config/config.edn. The home directory.wombatslocation will override the file inwombats-api. - Replace the Github Client ID and Github Client Secret with your Client ID and Secret.
- Place the file in either
-
Start the boot repl
$ boot repl
-
Seed the database
boot.user => (refresh)- Type "Yes" to confirm that you want to refresh the database.
-
Start the Wombats system
boot.user => (reloaded.repl/go)
-
Create account with datomic to get access to a download key for the Pro Starter version.
- Add two enviroment variables to allow Datomic to download when running the app with Boot.
DATOMIC_USERNAME=YourEmail@example.comDATOMIC_PASSWORD=YourDatomicPassword
- Add two enviroment variables to allow Datomic to download when running the app with Boot.
-
To run on another environment than local, create an environment variable called
WOMBATS_ENV.Possible values for
WOMBATS_ENVare:dev(local)dev-ddb(development database)qa-ddb(qa database)prod-ddb(production database)
-
Create a GitHub OAuth Application here.
- Name can be anything
- Homepage URL is
localhost:3449 - Callback URL is
http://localhost:8888/api/v1/auth/github/callback - Once the application is created, keep the page open, you will need the client-id and the client-secret for the next step.
-
Make a copy of the config_empty.edn file located at
wombats-api/config/config-empty.ednnamedconfig.edn- Place the file in either
~/.wombats/config.ednor inwombats-api/config/config.edn. The home directory.wombatslocation will override the file inwombats-api. - Replace the Github Client ID and Github Client Secret with your Client ID and Secret.
:aws nilallows the program to run without AWS Lambda- For Lamda support the
:awsobject should look like this:
:aws {:access-key-id “YourAWSAccessKeyId” :secret-key “YourAWSSecretKey”} - Place the file in either
-
Start the boot repl
$ boot repl
-
Start the Wombats system
boot.user => (reloaded.repl/go)
- Building the Wombats API is very easy, just run `boot build`.
- This option must be run with a flag that is not `dev` or `dev-ddb` for the WOMBATS_ENV environment variable.
- Once compiled, the jar is placed in `wombats-api/target/wombats.jar`.
- WOMBATS_ENV variable must be set in the launch options to one of the values specified above.
- Run the API with a command like this `WOMBATS_ENV=env java -jar target/wombats.jar`.
Check out Stuart Sierra's reloaded workflow to get an idea of how the development workflow for Wombats has been modeled.
reloaded.repl/goreloaded.repl/resetreloaded.repl/reset-allreloaded.repl/startreloaded.repl/stop
seedrefreshrefresh-db-functionsdelete