Skip to content

8base/simplest-starter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simplest Starter App

This is the simplest starter app! If doesn't care about your front-end. Actually, it doesn't even know what a front-end is. There are two scripts - one bash and the other JavaScript - that communicate with the 8base API. What both scripts demonstrate is how to trigger custom functions deployed to a workspace.

Server

The server directory hold the 8base project. When deployed to a workspace, it provisions two serverless functions. One webhook and one resolver.

The webhook can be invoked with a normal HTTP GET request.

The resolver can be invoked through the GraphQL API.

Both functions connect to the workspace database using the context.api argument passed to the function.

A schema.json file exists at the src/server path. Import it to an empty workspace using 8base import -f simple-schema.json

Client

To run the bash script, run $ bash script.sh COMMAND VALUE.

About

The simplest starter app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •