1.0.2 • Published 4 years ago

@hhimanshu/typescript-serverless-vercel v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

TypeScript Serverless APIs on Vercel

semantic-release npm

This directory is a brief example of using a Custom Build script that can be deployed with Vercel and zero configuration.

Features

  • Serverless functions written in TypeScript and deployed on Vercel platform
  • Tests support using Jest
  • CI setup using GitHub Actions to run tests on every push to GitHub (on every branch)
  • CI Setup to create a new release using semantic-release and publish package to npm

Available APIs

http://localhost:3000/api/address?total=<number>&type=<addressType>
  • The value of number must be between 1 and 50(inclusive)
  • The valid values for addressTypes are city, zipCode

Some examples are

http://localhost:3000/api/address?total=20&type=zipCode
http://localhost:3000/api/address?total=10&type=city

Start Developing

  • Clone this repository (or better fork it so that you can make changes in your repo)
  • Run yarn start. This will kick-off vercel dev so that you can start developing your features
  • Run yarn test to run tests
1.0.2

4 years ago