After working on boilerplate for Next Js and 11ty, I've recently published a starter code for Serverless framework with Express JS and TypeScript. Made for better developer experience: ESLint, Prettier, offline and local support, debugger with VSCode, etc.
You can also check the source code on GitHub: Serverless Starter Express TypeScript
Built-in feature for developer:
π₯ Serverless framework
β‘οΈ ExpressJS
π Type checking TypeScript
βοΈ Linter with ESLint
π Code Formatter with Prettier
π Local support with Serverless Offline
β¨ Debug locally with VSCode (optional)
π¨ Live reload
βοΈ Environment variable with Serverless Dotenv
π¦ HTTP Api instead of API gateway for cost optimization
ixartz / Serverless-Boilerplate-Express-TypeScript
πππ Boilerplate and Starter for Serverless framework, ExpressJS, TypeScript, Prisma and MongoDB β‘οΈ Made with developer experience first: Serverless framework + Live reload + Offline support + ExpressJS + TypeScript + ESLint + Prettier + Husky + Commitlint + Lint-Staged + Jest + Dotenv + esbuild + VSCode
π Serverless Boilerplate is starter code for your backend and REST API based on Serverless framework with Express JS, TypeScript, Prisma and MongoDB. β‘οΈ Made with Serverless framework, Live reload, Offline support, ExpressJS, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Jest, Commitlint, Dotenv, VSCode.
Clone this project and use it to create your own backend.
Features
Developer experience first:
- π₯ Serverless framework
- β‘οΈ ExpressJS
- β Type checking TypeScript with strict mode
- π ORM with Prisma
- π Database with MongoDB with in-memory database for local development
- π Linter with ESLint with Airbnb configuration
- π Code Formatter with Prettier
- π¦ Husky for Git Hooks
- π« Lint-staged for running linters on Git staged files
- π Lint git commit with Commitlint
- π Write standard compliant commit messages with Commitizen
- π¦Ί Unit testing with Jest and Supertest for integration testing
- π· Run tests on pull requestβ¦
Top comments (0)