https://github.com/clydedacruz/mica
https://github.com/clydedacruz/mica
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clydedacruz/mica
- Owner: clydedacruz
- Created: 2019-03-24T12:18:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T12:55:11.000Z (over 6 years ago)
- Last Synced: 2025-02-09T23:29:11.065Z (9 months ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express.js on Netlify Example
[](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
```