Skip to content

oslabs-beta/obsidian-8.0-demo

Repository files navigation

Obsidian 8.0 Demo

Getting Started

Install the latest version of Deno here

Clone this repository:

git clone https://github.com/oslabs-beta/obsidian-8.0-demo.git

Setting up a ElephantSQL database

Go to ElephantSQL, create an account and a new database instance. Name your database 'starwars' and select the free tier ('Tiny Turtle').

Get the URL of the newly created database.

Make sure you have PostgresQL installed (run psql --version to check).

From within the root directory run:

psql -d <YOUR_ELEPHANTSQL_URL_HERE> -f ObsidianDemoDatabasePlain.sql

in the terminal. Be sure to replace <YOUR_ELEPHANTSQL_URL_HERE> with your newly created elephantSQL url. This command will create tables in your database and populate the tables with rows of data that will be used for the demo.

Setting up your .env file

Create a .env file in the root folder and input the following:

PORT= //insert port of your choice (ex. 3000)
DATABASE_URL= //insert your postgresql URL here
REDIS_HOST= //insert host address (ex. '127.0.0.1')

Running the demo

Run the script below to start the demo:

deno task start

Connecting with Obsidian-Developer-Tool

Check out the Obsidian Developer Tool here!

Using the Containerized Demo

In a rush? We have a containerized demo available as well that showcases client-side caching with W-Tiny-LFU. Just use the command docker-compose up in the root directory after you fork and clone this repo.

About

Demo Application for Obsidian 8.0, now with W-TinyLFU

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published