Skip to content

Latest commit

 

History

History

javascript-node-edgedb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Node.js & EdgeDB (javascript-node-edgedb)

Develop applications in Node.js and EdgeDB, a next-generation graph-relational database. Includes Node.js, eslint, and yarn in a container linked to an EdgeDB Container

Options

Options Id Description Type Default Value
imageVariant Node.js version (use -bookworm, -bullseye variants on local arm64/Apple Silicon): string 22-bookworm

Notes on Usage

This definition contains 2 containers, one for Node.js and one for EdgeDB. You will be connected to the Node.js container, and can use the EdgeDB CLI in the Node.js container (installed via the edgedb-cli feature) to connect to the instance in the EdgeDB container. The password for the edgedb server is secret.

edgedb instance link edgedb-docker --trust-tls-cert --host=edgedb --port=5656 --password

# Select the defaults when prompted, and type in the password `secret` when prompted

You should now be connected to the edgedb-docker instance. You can list the instances with the following command:

edgedb instance list

# Output
┌────────┬───────────────┬─────────────┬─────────────┬────────┐
│ Kind   │ Name          │ Location    │ Version     │ Status │
├────────┼───────────────┼─────────────┼─────────────┼────────┤
│ remote │ edgedb-docker │ edgedb:5656 │ 4.5+ce8e127 │ up     │
└────────┴───────────────┴─────────────┴─────────────┴────────┘

EdgeDB UI

The EdgeDB Container sets the environment variable EDGEDB_SERVER_ADMIN_UI=enabled, so you can run the integrated UI. To access the UI, run the following command:

edgedb ui --print-url --no-server-check

This should print out a URL that you can open in your browser, something like http://localhost:5656/ui. The default credentials are:

Username: edgedb

Password: secret (same as EDGEDB_SERVER_PASSWORD)


Note: This file was auto-generated from the devcontainer-template.json. Add additional notes to a NOTES.md.