0.7.2 • Published 6 years ago

faas v0.7.2

Weekly downloads
198
License
-
Repository
-
Last release
6 years ago

Faas

Faas is a cloud service that provides a blind proxy and secure real-time pipeline to reach APIs running on sensitive systems behind a firewalled network or closed system without requiring any inbound ports or web servers to be exposed to the internet.

This npm module provides the libraries needed to serve an API from a client system.

Installation & Setup

Quick-Start Demo: Node.js

  1. In your project directory, install the faas library:

    npm install faas

  2. Generate a simple demo startup script and API files:

    ./node_modules/faas/demos/node/generate.sh
    
    # OR `npm root`/faas/demos/node/generate.sh

    This creates the file ./faas_demo_start.sh and the faas_demo_apis directory.

  3. Start your API server:

    ./faas_demo_start.sh

  4. Open a browser to https://api.faas.io/demo and watch your API server in action!

Quick-Start Demo: Java

  1. In your project directory, install the faas library:

    npm install faas

  2. Generate a simple demo startup script and API files:

    ./node_modules/faas/demos/java/generate.sh
    
    # OR `npm root`/faas/demos/java/generate.sh

    This creates the file ./faas_demo_start.sh, and the faas_demo_apis directory.

  3. Start your API server:

    ./faas_demo_start.sh

  4. Open a browser to https://api.faas.io/demo and watch your API server in action!

Quick-Start Demo: Ruby

  1. In your project directory, install the faas library:

    npm install faas

  2. Generate a simple demo startup script and API files:

    ./node_modules/faas/demos/ruby/generate.sh
    
    # OR `npm root`/faas/demos/ruby/generate.sh

    This creates the file ./faas_demo_start.sh, and the faas_demo_apis directory.

  3. Start your API server:

    ./faas_demo_start.sh

  4. Open a browser to https://api.faas.io/demo and watch your API server in action!

Quick-Start Demo: HTTP Proxy

  1. In your project directory, install the faas library:

    npm install faas

  2. Generate a simple demo startup script and API files:

    ./node_modules/faas/demos/http-proxy/generate.sh
    
    # OR `npm root`/faas/demos/http-proxy/generate.sh

    This creates the file ./faas_demo_start.sh, and the ./app.js demo app.

  3. Start your API server:

    ./faas_demo_start.sh

  4. Open a browser to your demo url (https://faasdemo-XXXXXXXX.http-proxy.faas.io/) and watch your proxy in action!


Intel Edison

Edison Quick-Start & Demo

  1. Configure your Edison to connect to your WiFi network.

  2. Install faas from a terminal on your Edison:

    npm install faas

  3. Generate a simple demo startup script and API files:

    ./node_modules/faas/demos/edison/generate.sh
    
    # OR `npm root`/faas/demos/edison/generate.sh

    This creates the file ./faas_demo_start.sh and the faas_demo_apis directory.

  4. Start the API on your Edison by running:

    ./faas_demo_start.sh

  5. Open a browser to https://api.faas.io/demo and enter your device key. You should now be able to turn the LED on your board on and off. That's it!

    Tip: The "DEVICE KEY" was printed to your screen when you started the command in Step 3. This is your Edison serial number, which can also be found on a physical label on your Edison, or in the file /factory/serial_number.

Extra Credit: Start on boot and restart on error

To enable your API to start whenever you boot your Edison (without needing to log in to it), you can run the following:

./node_modules/faas/demos/edison/install_service.sh

This does a few things:

  1. Copies the demo apis to /home/root/faas_api.

  2. Installs faas there (npm install faas).

  3. Creates a script to run your api at /home/root/faas_api/run_faas_api.sh.

  4. Creates a systemd service file to point to your script at /lib/systemd/system/faas.service.

  5. Enables this service to start automatically on boot via systemctl enable faas.


For more info, go to faas.io

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.10

7 years ago

0.5.9

8 years ago

0.5.8

8 years ago

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.37

9 years ago

0.0.36

9 years ago

0.0.35

9 years ago

0.0.34

9 years ago

0.0.33

9 years ago

0.0.32

9 years ago

0.0.32-1

9 years ago

0.0.32-0

9 years ago

0.0.31

9 years ago

0.0.30

9 years ago

0.0.29

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.17-pre.1

10 years ago

0.0.17-pre.0

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.10-pre.1

11 years ago

0.0.10-pre.0

11 years ago

0.0.1-0.pre0

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago