Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

FaunaDB example

A simple products app with FaunaDB test data.

Setup

Install dependencies

tinyhttp new async

Create a database

Go to FaunaDB dashboard, create a new database using test data.

Create an API key from dashboard and put it into .env file with DB_KEY=<variable> variable.

Run

node index.js

Endpoints

  • GET /products - get all products

  • GET /product/:name - get a specific product by name

  • POST /product - create a new product