For development or production you will need to provide a .env
file with the following variables:
# The URL of the remote MillenniumDB instance
VITE_MDB_SERVER_URL="ws://localhost:1234"
# The base URL for the app https://vitejs.dev/config/shared-options.html#base
VITE_APP_BASE_URL="/"
Optionally you can provide a set of examples at src/data/examples.js
. You need to provide javascript objects with the following structure:
const examples = [
{
title: 'Get 100 triples', // The title of the example
query: 'SELECT * WHERE { ?s ?p ?o } LIMIT 100', // The query to execute
},
];
export default examples;
Install dependencies:
npm install
Start the development server:
npm run dev
Install dependencies:
npm install
Build the app:
npm run build