https://github.com/neverendingqs/netlify-express
Express.js hosted on Netlify
https://github.com/neverendingqs/netlify-express
expressjs functions netlify
Last synced: 3 months ago
JSON representation
Express.js hosted on Netlify
- Host: GitHub
- URL: https://github.com/neverendingqs/netlify-express
- Owner: neverendingqs
- License: apache-2.0
- Created: 2018-08-20T01:36:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T22:37:01.000Z (over 2 years ago)
- Last Synced: 2025-03-29T04:10:54.596Z (4 months ago)
- Topics: expressjs, functions, netlify
- Language: JavaScript
- Homepage: https://netlify-express.netlify.app/
- Size: 192 KB
- Stars: 322
- Watchers: 7
- Forks: 340
- Open Issues: 11
-
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/ 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
```