The Edocs Documents API consits of 2 services:
- The
/api
that handles the connection to edocs api, cashes documents into an S3 bucket and redirects to the document address. /authorizer
handles authentication- The API is deployed as an AWS lambda via serverless.
- npm install --save-dev serverless-dynamodb-local
- npm install -g serverless
- npm install -g dynamodb-admin
- npm install jest
- Copy
.env.example
to.env
and fill in the secrets - Run
npm install
- Run
npm start
to run the application locally(port 3000) - Run
npm test
to run all the tests - Run
npm run lint
to run the linter - Run
npm run start-with-auth
to run the application with authentication locally
See the package.json for the steps involved in building and running the app.
- Route:
/documents/{id}
- Method:
GET