Skip to content

eduardoromero/weshare-webtask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weshare-webtask

A FaaS API for sharing documents. Built with WebTask.io, RethinkDB and the Serverless framework.

JavaScript Style Guide serverless

Running it with Serverless Framework

Get your credentials

sls config credentials --provider webtasks

Deploy / Run

npm install // or yarn
sls deploy

The result of deploy will be an URL you can use to consume your service.

Watching the Logs

sls logs 

API Functions

𝒇 - GET /

  • Triggering event:

    • HTTP
    • PATH: /
    • METHOD(S): GET
  • Environment variables (Secrets in WebTask.io):

    • RETHINKDB_SERVER: IP of the RethinkDB Server.
  • Pre-requisites:

    • RethikDB: Database weshare and table shares.

𝒇 - GET /:id

  • Triggering event:

    • HTTP
    • PATH: /[:id]
    • METHOD(S): GET
  • Environment variables (Secrets in WebTask.io):

    • RETHINKDB_SERVER: IP of the RethinkDB Server.
  • Pre-requisites:

    • RethikDB: Database weshare and table shares.

𝒇 - POST / and PUT /

  • Triggering event:

    • HTTP
    • PATH: /
    • METHOD(S): POST or PUT
  • Environment variables (Secrets in WebTask.io):

    • RETHINKDB_SERVER: IP of the RethinkDB Server.
  • Pre-requisites:

    • RethikDB: Database weshare and table shares.

𝒇 - DELETE /:id

  • Triggering event:

    • HTTP
    • PATH: /[:id]
    • METHOD(S): DELETE
  • Environment variables (Secrets in WebTask.io):

    • RETHINKDB_SERVER: IP of the RethinkDB Server.
  • Pre-requisites:

    • RethikDB: Database weshare and table shares.

Releases

No releases published

Packages

No packages published