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.
- 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
Ensure you have the following installed:
- Node.js (v14 or higher)
- npm
- Clerk account for authentication
- Supabase account for user data
- TMDB API key
-
Clone the repository
git clone https://github.com/TheNewLad/discord-rotten-tomatoes-server.git cd discord-rotten-tomatoes-server
-
Install dependencies
Using npm:
npm install
-
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
-
Start the development server
Using npm:
npm run dev
The server should now be running at
http://localhost:{PORT}
.
To run the tests, use:
npm test
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.