https://github.com/uvacoder/uva-restaurant-ratings-supabase-4275
https://github.com/uvacoder/uva-restaurant-ratings-supabase-4275
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/uvacoder/uva-restaurant-ratings-supabase-4275
- Owner: Uvacoder
- Created: 2023-04-06T03:02:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T23:13:33.000Z (about 3 years ago)
- Last Synced: 2025-01-24T05:44:19.671Z (over 1 year ago)
- Language: CSS
- Homepage: https://test-restaurant-ratings.vercel.app
- Size: 111 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://supabase.com), sign up or log in, and [create a new project](https://app.supabase.com/).
After your project is ready, create a table in your Supabase database using the [SQL Editor](https://app.supabase.com/project/_/sql) in the Dashboard. Use the following SQL statement to create a ratings table with some sample data.
```sql
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](https://app.supabase.com/project/_/settings/api):
```javascript
NEXT_PUBLIC_SUPABASE_URL = "https://.supabase.co";
NEXT_PUBLIC_SUPABASE_ANON_KEY = "";
```
Run `npm run dev`
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.