Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samajammin/netlify-express-test
https://github.com/samajammin/netlify-express-test
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/samajammin/netlify-express-test
- Owner: samajammin
- License: apache-2.0
- Created: 2019-10-22T07:36:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T12:37:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T19:23:34.323Z (about 1 month ago)
- Language: JavaScript
- Size: 572 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express.js on Netlify Example
[![Netlify
Status](https://api.netlify.com/api/v1/badges/9aaef7de-1e5d-4fda-bc39-faa10a68b35b/deploy-status)](https://app.netlify.com/sites/netlify-express/deploys)[![Deploy to
Netlify](https://www.netlify.com/img/deploy/button.svg)](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
```