Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jefreesujit/netlify-lambda-typescript-starter
A simple boilerplate template for netlify typescript functions
https://github.com/jefreesujit/netlify-lambda-typescript-starter
lambda netlify serverless typescript
Last synced: about 21 hours ago
JSON representation
A simple boilerplate template for netlify typescript functions
- Host: GitHub
- URL: https://github.com/jefreesujit/netlify-lambda-typescript-starter
- Owner: Jefreesujit
- License: mit
- Created: 2022-02-26T17:54:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-26T18:06:26.000Z (almost 3 years ago)
- Last Synced: 2024-12-18T18:08:20.377Z (about 2 months ago)
- Topics: lambda, netlify, serverless, typescript
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netlify-lambda-typescript-starter
A simple boilerplate template for netlify typescript functions[![Deploy To Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/jefreesujit/netlify-lambda-typescript-starter)
### Tech
This Project uses the following and few other services to work:
* [Typescript] - Strongly typed language based on Javascript
* [Netlify] - To build and deploy serverless apps
* [Webpack] - To bundle and package the code
* [Babel] - To transpile ESNext to ES5 compatible code### Development
Open your favorite Terminal and run these commands.
```
git clone https://github.com/jefreesujit/netlify-lambda-typescript-starter.git
``````
npm install
```
```
npm run build
```
```
npm run serve
```Make sure the local configuration is setup properly. Refer [Configuration](#configuration) section below.
Verify the deployment by navigating to your server address in your preferred browser. Should load an unauthorized screen.
```sh
127.0.0.1:9000
```
or
```sh
http://localhost:9000
```Try accessing the function handler from Postman or any API service tools
(Name of the file will be the name of the route)```sh
http://localhost:9000/api/handler
```### Deployments
Continuous Integration pipeline can be setup between `Github` and `Netlify`.
Any branch commits would create a preview deployment.
Pushing changes to `master` would trigger a `production` deployment.
Refer `https://docs.netlify.com/site-deploys/create-deploys/` for further details on deployments.