A starter kit for a serverless apaleo client gently offer by limehome-engineering 🙌 ✌️.
Note: If you don’t already have Node on your machine, you’ll need to install it first. We suggest using the latest LTS version of NodeJS.
Install the serverless CLI:
npm install serverless -g
- Run
npm install
- Create an
.env
file based on.env.example
- Run
npm run local
- Read about serverless & AWS credentials
- Run
npm run serverless -- deploy --stage={stage to deploy for}
to deploy on AWS
Grab the latest version of a swagger.json
for any service that needs to be updated.
The link to swagger.json
file can be found here:
Once you have the swagger.json
locally, navigate to the /src/generated/apaleo
folder and copy the file into the folder.
Then, pick the corresponding autorest-{service}.yaml
and call autorest, for example:
autorest .\autorest-booking.yaml
Once the proxy is generated successfully - make sure you removed the swagger.json
from the project.
Like the previous part, you will need to have a swagger.json
file first and put it inside the folder in /src/generated/apaleo
. From that moment, everything is pretty straightforward.
Just go to the folder and create a new autorest-{service}.yaml
file, based on any other configuration file there. And in this folder just run:
autorest .\autorest-{new_service}.yaml
Feel free to open an issue if you found any error or to create a pull request if want to add additional content.