Uvacoder / uva-restaurant-ratings-Supabase-4275

Home Page:https://test-restaurant-ratings.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Whenever I try a new restaurant, I give it a rating across five dimensions (food, bev, service, comfort, vibe). Often times, I do this in the uber home with my husband and forget our rating the next day. Not anymore! This is a simple web app that allows a user to store their restaurant ratings in Supabase.

You can check out the app here: https://five-stars.vercel.app/

Getting Started

Run npm install

Go to Supabase, sign up or log in, and create a new project.

After your project is ready, create a table in your Supabase database using the SQL Editor in the Dashboard. Use the following SQL statement to create a ratings table with some sample data.

create table ratings (
  id bigint generated by default as identity primary key,
  inserted_at timestamp with time zone default timezone('utc'::text, now()) not null,
  date timestamp with time zone,
  restaurant text,
  food text,
  beverage text,
  service text,
  comfort text,
  vibe text
);

Create a new file in the root directory called .env and add your project URL and public API key:

NEXT_PUBLIC_SUPABASE_URL = "https://<project>.supabase.co";
NEXT_PUBLIC_SUPABASE_ANON_KEY = "<your-anon-key>";

Run npm run dev

Open http://localhost:3000 with your browser to see the result.

About

https://test-restaurant-ratings.vercel.app


Languages

Language:CSS 49.8%Language:TypeScript 40.5%Language:JavaScript 9.7%