Skip to content

diegospd/satori-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satori Backend

Satori Backend provides a REST API for retrieving insurance submissions.

Local Development Environment

To set up the local development environment, ensure that you have a PostgreSQL server running on port 5432 (configurable here).

  1. Customize your database credentials in the config.clj file.
  2. 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"
  1. 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

Starting the service

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

Running tests

You may execute unit tests with

lein test

Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published