https://github.com/trapcodeio/netlify-express
https://github.com/trapcodeio/netlify-express
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trapcodeio/netlify-express
- Owner: trapcodeio
- License: apache-2.0
- Created: 2020-09-18T04:20:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T05:20:40.000Z (over 5 years ago)
- Last Synced: 2025-03-20T05:34:56.642Z (12 months ago)
- Language: JavaScript
- Size: 419 KB
- Stars: 1
- Watchers: 1
- 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
```