A movie schema sandbox for playing with EdgeDB and the EdgeQL query builder, pre-loaded with MCU data

Overview

The EdgeDB MCU sandbox 🦹

This is a sandbox for playing with EdgeDB and the EdgeQL query builder.

It includes a simple movie database schema (dbschema/default.esdl) and a sample dataset (seed.ts) containing the movies and shows in the Marvel Cinematic Universe (last update: July 2022).

Setup

1. Install the EdgeDB CLI

# macOS/Linux
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh

# windows
$ iwr https://ps1.edgedb.com -useb | iex

2. Clone the repo

$ git clone [email protected]:edgedb/mcu-sandbox.git
$ cd mcu-sandbox

3. Initialize the EdgeDB project

edgedb project init

Then follow the prompts. This step spins up a local EdgeDB instance and applies the migrations inside dbschema/migrations.

4. Setup project

$ npm install           # install dependencies
$ npx edgeql-js         # generate query builder
$ npx tsx seed.ts       # seed the database

5. Start writing queries!

Write a query in script.ts and execute it like so:

$ npm run dev

This starts a watcher, so every time you update and save script.ts, the script will be re-run.

Evolving the schema

  1. Update the schema in dbschema/default.esdl
  2. Generate a new migration with edgedb migration create
  3. Follow the interactive prompts
  4. Apply the migration with edgedb migrate
  5. Regenerate the query builder with npx edgeql-js

File structure

The sandbox is a simple project designed to showcase the query builder.

  • script.ts - a simple script you can update to play with the query builder
  • dbschema/default.esdl - the schema file
  • dbschema/migrations - the migrations directory
  • dbschema/edgeql-js - the default location of the generated query builder
You might also like...

A postMessage bridge to connect to dapps loaded into an iframe.

cardano-dapp-connector-bridge A postMessage bridge to connect to dApps loaded into an iframe. Motivation In April 2022, browser extensions are the onl

Oct 11, 2022

Remix+EdgeDB+Tailwind+Fly.io=🖤

Remix Chop Suey Stack Forked from Supa Fly Stack. Learn more about Remix Stacks. Quickstart npx create-remix --template jkcorrea/remix-chop-suey-stack

Dec 22, 2022

MUI Core is a collection of React UI libraries for shipping new features faster. Start with Material UI, our fully-loaded component library, or bring your own design system to our production-ready components.

MUI Core is a collection of React UI libraries for shipping new features faster. Start with Material UI, our fully-loaded component library, or bring your own design system to our production-ready components.

MUI Core MUI Core contains foundational React UI component libraries for shipping new features faster. Material UI is a comprehensive library of compo

Dec 30, 2022

(Developing) Twitter Clone made with Remix, EdgeDB & UnoCSS.

Twitter Clone Twitter clone made with Remix, EdgeDB & UnoCSS. Demo: twitter-clone.poke.dev Features Signup/Login (With GitHub OAuth) Create tweets Fol

Jan 3, 2023

Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks.

dummy-api Api similar to dummy-api Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks. All

Jan 7, 2023

A sandbox coding environment, desktop app, inspired by CodePen and JSFiddle

A sandbox coding environment, desktop app, inspired by CodePen and JSFiddle

CodeBox CodeBox is a coding environment with HTML, CSS and JavaScript editors with a live preview panel to show what the code would look like in the b

Dec 20, 2022

Remix sandbox repo for Rust compiled to WASM and to native N-API modules

Rust - Remix Sandbox Now with both native Rust and WASM versions! If you want to combine the Web Fundamentals & Modern UX of Remix together with the

Dec 30, 2022

quick.js based sandbox

About quick.js based sandbox npm install define-function works in any WebAssembly environment node browser wechat miniprogram Usage define a function

Dec 7, 2022

Junon.io - 2D space sandbox survival

Junon.io Junon.io is a co-op multiplayer survival game where your goal is to build your own space-station, grow your colony, and defend it against hos

Oct 29, 2022
Owner
EdgeDB
A next-generation graph-relational database.
EdgeDB
A simple query builder, it will helps to develop DSL query for Elasticsearch

Elasticsearch Dynamic Query Builder A simple query builder, it will helps to develop DSL query for elasticsearch Installation You can start it from np

Hashemi Rafsan 4 Nov 20, 2022
A NodeJs service which allows you to create a movie based on it's title (additional movie details will be fetched) and fetch all created movies.

movies-api A NodeJs service which allows you to create a movie based on it's title (additional movie details will be fetched) and fetch all created mo

Ugochukwu Ejiogu 2 Mar 27, 2022
An open source movie library platform for viewing movie info and saving movies for later.

GoodWatch An open source movie library platform for viewing movie info and saving movies for later. How to get started? Fork and clone the repo. Then

null 13 Apr 28, 2022
Rent-A Movie is a website based on movie renting. The user can leave likes, comments or make reservations for movies they would like to rent. Made using tvMaze API, Involvement API, HTML, SASS and JavaScript

Rent-A Movie "Rent-A Movie" is a website for movie renting where you can make reservations, add comments & likes or just get details about movies that

Zeeshan Haider 19 Aug 23, 2022
Movie application consuming The Movie DB's API

Movie application consuming The Movie DB's API

Pamella Fernandes 6 Aug 11, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
100% type-safe query builder for node-postgres :: Generated types, call any function, tree-shakable, implicit type casts, and more

⚠️ This library is currently in alpha. Contributors wanted! tusken Postgres client from a galaxy far, far away. your database is the source-of-truth f

alloc 54 Dec 29, 2022
A simple app demoing Remix + EdgeDB

Welcome to Remix + EdgeDB! Remix Docs Prerequisites Node 14+ and NPM EdgeDB CLI Creating a new project from this repo Use your terminal to run create-

Jacob Ebey 5 May 18, 2022