1.0.2 • Published 5 years ago
@hhimanshu/typescript-serverless-vercel v1.0.2
TypeScript Serverless APIs on Vercel
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
TypeScriptand 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-releaseand publish package tonpm
Available APIs
http://localhost:3000/api/address?total=<number>&type=<addressType>- The value of
numbermust be between1and50(inclusive) - The valid values for
addressTypesarecity,zipCode
Some examples are
http://localhost:3000/api/address?total=20&type=zipCode
http://localhost:3000/api/address?total=10&type=cityStart Developing
- Clone this repository (or better fork it so that you can make changes in your repo)
- Run
yarn start. This will kick-offvercel devso that you can start developing your features - Run
yarn testto run tests
1.0.2
5 years ago