DEV Community

Cover image for AWS Lambda Typescript Template
Andronik Nazaryan
Andronik Nazaryan

Posted on

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 ⭐

Top comments (0)