No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
resources
script
src
test/buyme_aggregation_backend
.gitignore
.lein-env
CHANGELOG.md
LICENSE
README.md
buyme-aggregation-backend.iml
profiles.clj
project.clj

README.md

buyme-aggregation-backend

Dev

  • Fill in profiles.clj with your info

Run a local dev database (docker)

  • docker run --name bag-postgres -e POSTGRES_PASSWORD=pw -d -p 5432:5432 postgres
  • lein migratus migrate

get the repl going

  • lein repl
  • (start) / (stop) -- boot/shutdown app
  • to reload after code changes: (refresh-all) (then (start) again)

Prod

mostly TBD -- uberjar?

  • should get config vars from the environment:

  • provide a .env with overrides for the variables in profiles.clj (can be UPPER_SNAKE_CASE if desired)

  • source .env

Lambda stuff

  • lambda functions go in the lambda.* namespace (see examples)
  • run sh script/refresh-lambda-scripts.sh to generate a lambda jar and upload it to aws as individual functions (need awscli tools installed)
  • add your handlers to the handlers array in script/lambda_management_config.conf

License

Copyright © 2016 Mitch Robb

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.