https://github.com/ngduc/node-rem-netlify
https://github.com/ngduc/node-rem-netlify
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ngduc/node-rem-netlify
- Owner: ngduc
- License: apache-2.0
- Created: 2020-11-07T06:21:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T06:34:36.000Z (over 5 years ago)
- Last Synced: 2025-01-02T19:52:41.487Z (over 1 year ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express.js on Netlify Example
[](https://app.netlify.com/sites/netlify-express/deploys)
[](https://app.netlify.com/start/deploy?repository=https://github.com/neverendingqs/netlify-express)
An example of how to host an Express.js app on Netlify using
[serverless-http](https://github.com/dougmoscrop/serverless-http). See
[express/server.js](express/server.js) for details, or check it out at
https://netlify-express.netlify.com/!
[index.html](index.html) simply loads html from the Express.js app using
``, and the app is hosted at `/.netlify/functions/server`. Examples of
how to access the Express.js endpoints:
```sh
curl https://netlify-express.netlify.com/.netlify/functions/server
curl https://netlify-express.netlify.com/.netlify/functions/server/another
curl --header "Content-Type: application/json" --request POST --data '{"json":"POST"}' https://netlify-express.netlify.com/.netlify/functions/server
```