Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gcf-express-app

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gcf-express-app

Run Express Apps on Google Cloud Functions

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
3
Weekly downloads
 
Created
Source

gcf-express-app

gcf-express-app helps you run express apps on Google Cloud Functions (GCF) without Firebase!

CircleCI Coverage Status MIT License version

Example

Edit index.js:

const gcfExpressApp = require('gcf-express-app')
const express = require('express')

const app = express()
app.get('/', (req, res) => res.send('Yup. I\'m alive.'))

exports.testExpressApp = gcfExpressApp(app)

And then:

$ gcloud beta functions deploy testExpressApp --trigger-http

Test it:

$ curl https://<YOUR_PROJECT>.cloudfunctions.net/testExpressApp

Cleanup:

$ gcloud beta functions delete testExpressApp

The example directory is a ready-to-deploy sample function that uses gcf-express-app and deploys an express app on GCF.

Why

I simply wanted to run express apps on GCF without using Firebase functions.

Simply doing:

const app = express()
[...]
exports.testExpressApp = app

Actually works. But then there's a problem with a trailing slash.

License

MIT

Keywords

FAQs

Package last updated on 19 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc