- https://my-json-server.typicode.com/alecarg/ef-api (using this repo's db.json)
- events/
- events/{eventId}
- users/{userId}/promotions/
- promotions/{promotionId}/rewards/
- users/{userId}/events/
- events/{eventId}/promotions/
- [NOT SURE] Document in swagger: https://app.swaggerhub.com/apis/Ale1/EFApi/1.0.0
- Implement API requirements via Serverless and Dynamodb
- [NOT SURE] Define Authentication (via Okta? https://scotch.io/tutorials/build-simple-authentication-in-express-in-15-minutes, via Passport.js? http://www.passportjs.org/docs/, via Grant? https://github.com/simov/grant, more: https://oauth.net/code/nodejs/)
For latest, follow these steps:
- Pull repo and
cd
into it - Install packages with
yarn install
- Install the DB with
sls dynamodb install
- Run serverless offline and dynamodb with
sls offline start
Based on the following two articles (the first one is just a dependency on the second one)