https://github.com/ize-302/rate-sq
Web app for rating opening sequence of tv shows
https://github.com/ize-302/rate-sq
javascript jest mantine-ui neondb nextjs postgresql tailwindcss tmdb-api
Last synced: 3 months ago
JSON representation
Web app for rating opening sequence of tv shows
- Host: GitHub
- URL: https://github.com/ize-302/rate-sq
- Owner: ize-302
- Created: 2023-06-20T19:29:45.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T18:04:00.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T21:28:13.167Z (over 1 year ago)
- Topics: javascript, jest, mantine-ui, neondb, nextjs, postgresql, tailwindcss, tmdb-api
- Language: JavaScript
- Homepage: https://rate-sq.vercel.app
- Size: 894 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.md
Awesome Lists containing this project
README
# RateSQ ⭐⭐⭐⭐⭐
Web app for rating opening sequence of tv shows
[](https://codecov.io/gh/ize-302/rate-sq)
[](https://github.com/ize-302/rate-sq/actions/workflows/ci.yml)
#### Tech Stack
- [NextJS](https://nextjs.org/)
- PostgreSQL with ([NeonDB](https://neon.tech))
- [Jest](https://jestjs.io/) for testing
- [TailwindCSS](https://tailwindcss.com) & [Mantine](https://mantine.dev/)
- Hosted on [Vercel](https://vercel.com)
- TV shows powered by [TMDB](https://themoviedb.org/)
#### Database Structure / Relationship 💾
(https://drawsql.app/teams/team-ize/diagrams/rate-sq)
#### How to run 🏃
##### Requirements
- Access token key from themoviedb developer account https://developer.themoviedb.org
- Postgresql config. This setup uses neondb https://neon.tech/
- Good to go 🔥 🔥 🔥
##### Proceedures
- Clone the repo
- Run `yarn install` to install dependencies
- Run `Yarn dev` to run in development mode
- This usually runs on port 3000 unless otherwise stated
##### PS 👋
Run the following in your SQL editor to create the required tables
```
CREATE TABLE profiles (
id uuid PRIMARY KEY,
created_at timestamptz NOT NULL DEFAULT NOW(),
email text,
password text,
verified bool DEFAULT false,
avatar_url text NULL,
display_name text,
salt text,
role text DEFAULT user
);
```
```
CREATE TABLE Titles (
id text PRIMARY KEY,
created_at timestamptz NOT NULL DEFAULT NOW(),
added_by uuid,
name text,
embed_code text
);
```
```
CREATE TABLE Ratings (
id uuid PRIMARY KEY,
author uuid,
rating numeric,
comment text,
updated_at timestamptz NOT NULL DEFAULT NOW(),
show_id text
);
```