https://github.com/h1romas4/netlify-functions-template
Netlify Functions Template. Includes access counter (accessories) sample program.
https://github.com/h1romas4/netlify-functions-template
lambda netfify netlify-functions nodejs
Last synced: 9 months ago
JSON representation
Netlify Functions Template. Includes access counter (accessories) sample program.
- Host: GitHub
- URL: https://github.com/h1romas4/netlify-functions-template
- Owner: h1romas4
- License: mit
- Created: 2020-03-29T15:18:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:36:46.000Z (almost 3 years ago)
- Last Synced: 2024-12-30T04:26:07.459Z (10 months ago)
- Topics: lambda, netfify, netlify-functions, nodejs
- Language: JavaScript
- Homepage: https://qiita.com/h1romas4/items/5048f68e16cadc4e6fb8
- Size: 1.76 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# netlify-functions-template
[](https://app.netlify.com/start/deploy?repository=https://github.com/h1romas4/netlify-functions-template)
Includes access counter(accessories) sample program.
Note that, The counter disappears when the Lambda instance rebuild.
## Example

> [https://maple4estry.netlify.com/](https://maple4estry.netlify.com/)
## Develop
[](https://app.netlify.com/sites/sample-counter/deploys)
### Local develop
Build & Start application:
```
git clone https://github.com/h1romas4/netlify-functions-template.git
cd netlify-functions-template
npm install
npm run devel # or npm run devel:debug
```
Access browser:
```
http://localhost:9000/.netlify/functions/counter
http://localhost:9000/.netlify/functions/digit?width=500&digit=6&number=10
```
### Cloud develop
Import project:
[](https://gitpod.io/#https://github.com/h1romas4/netlify-functions-template)
Build & Start application:

Access browser:
paste this command-lines on gitpod terminal(open preview browser)
```
gp preview $(gp url 9000)/.netlify/functions/digit/200/5/12345
```
## Thanks
* Counter SVG & CSS/JS by [@Fujix](https://github.com/Fujix1)