Skip to content

mateonunez/platformatic-orama

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks