Skip to content

This is a template with serverless framework and TypeScript support

Notifications You must be signed in to change notification settings

darkmavis1980/serverless-typescript-template

Repository files navigation

Serverless TypeScript Template

This is a template to create lambda functions with Serverless framework and TypeScript support.

Setup

You need to install the dependencies by running:

npm install

Run it locally

To run it locally, just run the following command:

npm run offline

Once this is running, it's available at http://localhost:4000.

Github actions

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.

About

This is a template with serverless framework and TypeScript support

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published