Skip to content

SLS-Node-TS-Template repository! This project provides a robust boilerplate for developing serverless applications on AWS Lambda using Express.js and TypeScript. It combines the power of Express.js for building APIs with the benefits of TypeScript for static typing and modern JavaScript features.

Notifications You must be signed in to change notification settings

otlichnyy/sls-node-ts-template

Repository files navigation

🚀 SLS-Node-TS-Template

License: ISC

The production-ready boilerplate to develop serverless applications on AWS Lambda with Express.js in TypeScript. Build Apps Locally

📦 Features

  • Express.js Integration: Build robust serverless APIs with the power of Express.js.
  • TypeScript Support: Enjoy the benefits of static typing and modern JavaScript features.
  • Serverless Framework: Utilize the Serverless Framework for seamless deployment and management of AWS Lambda functions.
  • ESLint and Prettier: Maintain code quality and consistency with ESLint and Prettier configurations.
  • Jest Testing: Write and run tests with Jest to ensure the reliability of your serverless functions.
  • Serverless Plugins: Leverage useful Serverless plugins like serverless-dotenv-plugin, serverless-esbuild, serverless-lift, and serverless-offline.
  • Deployment-ready: A template ready for production deployment on AWS Lambda.
  • Dynamodb-local This support DyanamoDB local Developement
  • Proper Global Error Handling: Express's global error handling with error stacks on developement and production envs (make sure to add NODE_ENV=developement to see error stacks in response)

🛠️ Prerequisites

  • Node.js (v18.19.0 recommended)
  • npm or yarn
  • volta (node and package manager, recommended)
  • Serverless Framework (v3.38.0 or later)

🚦 Getting Started

  1. Clone the Repository:

    git clone [email protected]:otlichnyy/sls-node-ts-template.git
    cd sls-node-ts-template
  2. Install Dependencies:

    npm install
  3. Local Development:

    npx sls offline
  4. Testing:

    npm t
  5. Linting and Formatting:

    npm run lint
  6. Deploy:

    npx sls deploy

📄 License

This project is licensed under the ISC License - see the LICENSE file for details.

About

SLS-Node-TS-Template repository! This project provides a robust boilerplate for developing serverless applications on AWS Lambda using Express.js and TypeScript. It combines the power of Express.js for building APIs with the benefits of TypeScript for static typing and modern JavaScript features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published