yearn / yearn-api-archived

Collection of serverless API
23 stars 24 forks source link

feat: add local env with local dynamodb #25

Closed kx9x closed 3 years ago

kx9x commented 3 years ago

This PR adds a way to run the yearn-api docker container using dynamodb local. This opens up for development without using AWS and more easily allows devs to test changes that will write to the db, without worrying about messing up cloud databases.

I retained the old dev stage environment in .env.dev and added the new local stage environment in .env.local.

resource.local.yml defines the empty tables that get created in the local dynamodb when running the local stage. It is necessary to run the 'save' apis for each table to fill those tables locally.

This PR also adds java to the container, which is needed for the local dynamodb instance.

kx9x commented 3 years ago

Addresses #26