mateonunez / platformatic-orama

Platformatic performed with Orama

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Platformatic with Orama

The services exposes two routes:

  • /orama/:author - returns a list of all the posts that matches the author query param using Orama
  • /mapper/:author - returns a list of all the posts that matches the author query param using the native @platformatic/sql-mapper

Usage

$ npm install

Create a new migration file in database/migrations/001.do.sql.

CREATE TABLE quotes(
  id INTEGER PRIMARY KEY,
  author VARCHAR(255) NOT NULL,
  quote TEXT NOT NULL
)
$ npm run platformatic:migrate
$ npm run platformatic:seed
$ npm start

License

MIT

About

Platformatic performed with Orama

License:MIT License


Languages

Language:JavaScript 100.0%