1.0.2 • Published 4 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
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 tonpm
Available APIs
http://localhost:3000/api/address?total=<number>&type=<addressType>
- The value of
number
must be between1
and50
(inclusive) - The valid values for
addressTypes
arecity
,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-offvercel dev
so that you can start developing your features - Run
yarn test
to run tests
1.0.2
4 years ago