saviomartin / codehouse

A whole new world of 300+ developer cheatsheets
https://codehouse.vercel.app/
MIT License
968 stars 72 forks source link

"Unhandled Runtime error" #7

Open JHevia23 opened 3 years ago

JHevia23 commented 3 years ago

Hey! Very nice project!

I could build the project seamlessly after cloning, but when I run npm run dev I come up with an error. The page loadsa correctly and this message pops up: image

I went to console logs and the following appears

image

My guess is that I'm not setting up the HarperDB database URL and authentication ID correctly. In fact, could you point me to where I should get an authentication ID from HDB? I managed to create a new instance (and its corresponding URL).

Thanks!

saviomartin commented 3 years ago

I don't really know why this happened to you, I think it is the problem you haven't put your .env.

Here is how to get one using harperDB

  1. Create a new instance
  2. Create tables called cheatsheets, categories etc
  3. Click on examples tab, here you could see examples as well your DB_URL and AUTHORIZATION_ID.

Cheers! Savio Martin 😌

JHevia23 commented 3 years ago

Ok! Nice!

So I'd have to create each table manually for the app to function? Where can I find the whole architecture to build it up or is it documented anywhere?

saviomartin commented 3 years ago

You can just create some tables like cheatsheets and add its data (less than 5 mins)

You can just upload your data, Here is the complete data backup-data.csv. Just upload it and you're good to go 👍