Skip to content

Pick 3 Movies, and Let Us Find Your Next Must-Watch!

License

Notifications You must be signed in to change notification settings

wazeerc/movie-recs

Repository files navigation

Movie Recs 🎥

Pick 3 Movies, and Let Us Find Your Next Must-Watch!

Built with:

React Vite TypeScript Magic UI Supabase

Warning

🚧 Development is still in progress.

Installation

  npm i
  npm run dev

Setting Up Supabase

  1. Go to Supabase and create an account.
  2. Create a new project in the Supabase dashboard.
  3. Once the project is created, go to the "Settings" tab and find your API URL and Anon Key.
  4. Copy these values and create a .env file in the root of the cloned repository:
  5. Create a table called Movies and import the csv file from public/data/movies.csv and set a PK.
  6. Create a RLS policy in order to access the data - please follow these steps:
    • Open the Table Editor
    • Select the "Movies" table
    • Click "Add RLS Policy"
    • Click "Create policy" (refer to ss below)
    • Choose the "Select" template
    • Save policy
VITE_SUPABASE_URL=your_supabase_url_here
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key_here

Contributing

Contributions are always welcome! 😃

  1. Fork the Project
  2. Create your Feature Branch git checkout -b feature/AmazingFeature
  3. Commit your Changes git commit -m 'Add some AmazingFeature'
  4. Push to the Branch git push origin feature/AmazingFeature
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Readme created with readme.so

RLS Policy settings
RLS Policy Settings