This is a template to create lambda functions with Serverless framework and TypeScript support.
You need to install the dependencies by running:
npm install
To run it locally, just run the following command:
npm run offline
Once this is running, it's available at http://localhost:4000.
This template also contains github actions to execute the deployment via Github actions, but you will need to uncomment these lines in the .github/workflows/release.yml
file:
# ...
- run: npm ci
- name: serverless deploy
uses: serverless/[email protected]
with:
args: deploy
env:
TEST: ${{ secrets.TEST }}
Then to start the deployment you just need to create a new Release in your repository.
If you don't have github actions support, simply remove the
.github
folder.