Install the latest version of Deno here
Clone this repository:
git clone https://github.com/oslabs-beta/obsidian-8.0-demo.git
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.
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')
Run the script below to start the demo:
deno task start
Check out the Obsidian Developer Tool here!
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.