Satori Backend provides a REST API for retrieving insurance submissions.
To set up the local development environment, ensure that you have a PostgreSQL server running on port 5432 (configurable here).
- Customize your database credentials in the config.clj file.
- Create a new database named
satori
by executing the following command replacing<USERNAME>
with the correct PostgreSQL user.
psql -U <USERNAME> -d postgres -c "CREATE DATABASE satori"
- Create empty tables for the database
psql -U <USERNAME> -d satori -a -f resources/init.sql/001_create_table.sql
4.Load the database with 10,000 mock submission
rows
psql -U <USERNAME> -d satori -a -f resources/init.sql/002_insert_data.sql
You will need to install leiningen
in order to execute the Clojure project. You can install it via your favorite
package manager or manually.
You may start the service with the following command
lein run
You may execute unit tests with
lein test