Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anyesh/express-test
Express test app for netlify deployment
https://github.com/anyesh/express-test
Last synced: 3 days ago
JSON representation
Express test app for netlify deployment
- Host: GitHub
- URL: https://github.com/anyesh/express-test
- Owner: Anyesh
- License: apache-2.0
- Created: 2019-06-14T13:35:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:51:38.000Z (almost 2 years ago)
- Last Synced: 2023-02-27T23:56:18.483Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 787 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express.js on Netlify Example
[![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
```