Skip to content

TheNewLad/discord-rotten-tomatoes-server

Repository files navigation

Discord Rotten Tomatoes Server

This API allows users to sign in with Discord to access and rate TV shows and movies for a specific Discord server. This project aims to provide Discord server-specific reviews, search functionality, commenting, and personalized rating weightings.

Technologies Used

  • Frontend (Link): React, Tailwind CSS
  • Backend: Node.js, Express
  • Database: Supabase
  • Authentication: Clerk, Discord OAuth
  • API Integration: TMDB API for fetching movie details
  • Testing: Vitest, React Testing Library

How to Run the Project

Prerequisites

Ensure you have the following installed:

  • Node.js (v14 or higher)
  • npm
  • Clerk account for authentication
  • Supabase account for user data
  • TMDB API key

Setup

  1. Clone the repository

    git clone https://github.com/TheNewLad/discord-rotten-tomatoes-server.git
    cd discord-rotten-tomatoes-server
  2. Install dependencies

    Using npm:

    npm install
  3. Configure environment variables

    Create a .env file in the root directory and add the following:

    DISCORD_CLIENT_ID=your_discord_client_id
    DISCORD_CLIENT_SECRET=your_discord_client_secret
    DISCORD_SERVER_ID=your_discord_server
    SUPABASE_URL=your_supabase_url
    SUPABASE_KEY=your_supabase_key
    TMDB_API_KEY=your_tmdb_api_key
    PORT=port_to_run_server // defaults to 4000 if not provided
  4. Start the development server

    Using npm:

    npm run dev

    The server should now be running at http://localhost:{PORT}.

Running Tests

To run the tests, use:

npm test

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published