DEV Community

Cover image for AWS Lambda Typescript Template
Andronik Nazaryan
Andronik Nazaryan

Posted on

3 3

AWS Lambda Typescript Template

Hello there, today I want to present you template built by me.

Serverless functions are growing in popularity, and since today I haven't found a good template to develop serverless functions in Typescript

you can view template on this URL REPOSITORY

template includes basic structure which can be modified in any way

Instructions

clone repository

git clone https://github.com/anridev24/sls-lambda-ts-template.git
Enter fullscreen mode Exit fullscreen mode

CD into project and open with your text editor

cd .\sls-lambda-ts-template\
code .
Enter fullscreen mode Exit fullscreen mode

install dependencies and start the development server

npm install
npm run dev
Enter fullscreen mode Exit fullscreen mode

you can start coding in src folder

and finally you can deploy it using

serverless deploy
Enter fullscreen mode Exit fullscreen mode

Everything you write will be transpiled to JavaScript in a dist folder.

When you deploy, useless packages will be excluded to guarantee minimal deployment size.

Thank you for reading, if you have any questions feel free to ask.
Will be happy if you give me a star on GitHub ⭐

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay