Saasli / saasli-backend

Documentation
https://saasli.github.io/docs/
0 stars 0 forks source link

Unite `/api` services to one mega service. #32

Closed godd9170 closed 7 years ago

godd9170 commented 7 years ago

As it stands, the API gateway can't point one domain, to multiple AWS apis. Well, it can, but they need to have unique 'base paths' which really sucks.

The only way I can see around this is to re-bucket /account, /contact, /event and /encryption all into one /api service.

godd9170 commented 7 years ago

Here's the Gameplan.

One master serverless.yml at the root of the /api folder. We can pretty much copy the function definitions ymls from each of the sub dirs and thanks to serverless' new function level package inclusion/exclusions we can just make each function ignore the sub dirs of the other functions.

reasons why this is sick:

godd9170 commented 7 years ago

Word of the wise, when you only want to deploy the function you're working on (and it's got it's stack already built)

sls deploy function -f account

it's fast like ⚡ too