Giter Site home page Giter Site logo

haru-hue / movie-watchlist Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.16 MB

A movie watchlist designed to help users manage and track movies they wish to watch

Home Page: https://movie-watchlist-six.vercel.app

TypeScript 96.78% JavaScript 0.41% CSS 2.65% Dockerfile 0.15%

movie-watchlist's Introduction

Movie Watchlist

Welcome to the Movie Watchlist project! This application is designed to help users manage and track movies they wish to watch. It showcases a wide array of modern web development technologies and practices. I've included for you below the detailed documentation on the setup, structure, and features of this full-stack application.

Table of Contents

Overview

The Movie Watchlist is a full-stack web application that allows users to search for movies, add them to their watchlist, and manage their movie viewing preferences. It leverages both client-side and server-side technologies to deliver a seamless user experience.

Technologies Used

Frontend

  • Next.js: React framework for server-side rendering and static site generation.
  • TypeScript: Superset of JavaScript that adds static types.
  • TMDB API: Used for fetching movie data.

Backend

  • Node.js: JavaScript runtime for building server-side applications.
  • GraphQL: Query language for APIs, providing a more efficient, powerful, and flexible alternative to REST.
  • Prisma: Next-generation ORM for database interaction.
  • PostgreSQL: Relational database management system.

Additional Tools

  • ESLint: Linting utility to ensure code quality.
  • Prettier: Code formatter for consistent style.

Client Side Setup

To set up the client side of the application, follow these steps:

  • Navigate to the client directory: cd client

  • Install Dependencies: npm install

Configure Environment Variables:

  • Create a .env.local file in the client directory and add: NEXT_PUBLIC_TMDB_API_KEY=your_tmdb_api_key

  • Replace your_tmdb_api_key with your actual TMDB API key.

  • Run the Development Server: npm run dev

The client-side application will run on http://localhost:3000.

Server Side Setup

To set up the server side of the application, follow these steps:

  • Navigate to the server directory: cd server

  • Install Dependencies: npm install

Configure Environment Variables:

  • Create a .env file in the server directory and add:
DATABASE_URL=postgresql://user:password@localhost:5432/moviedb
  • Replace user, password, and moviedb with your PostgreSQL credentials and database name.

  • Set Up the Database:

npx prisma migrate dev

This will set up the database schema based on the Prisma schema defined in prisma/schema.prisma.

  • Start the Server:
npm run dev

The server will run on http://localhost:4000 by default.

Running the Application

To run the fullstack application, ensure both the client and server are set up and running:

  • Start the Server:
cd server
npm run dev
  • Start the Client:
npm run dev

You can now access the application through the client interface, which interacts with the server-side API for data operations.

Project Structure

Client Side

  • app/: Next.js pages are automatically routed based on the file structure.
  • components/: Reusable React components for UI elements.
  • styles/: CSS modules and global styles.
  • utils/: Utilities and helper functions.

Server Side

  • src/: Contains the main source code for the server.
  • schema/: Defines the GraphQL schema and resolvers.
  • prisma/: Prisma client setup for database interactions.

Key Features

  • Watchlist Management: Users can add movies to their watchlist, mark movies as watched, and remove them as needed.
  • Movie Search and Details: Utilize the TMDB API to search for movies and view detailed information, including ratings, cast, and crew.
  • Responsive UI: The application is designed to be fully responsive and works seamlessly on both desktop and mobile devices.
  • GraphQL API: Efficient data fetching and mutations using GraphQL.
  • Database Management: Use Prisma ORM for database schema management and interactions with PostgreSQL.

Contributing

I welcome contributions to the Movie Watchlist project! Feel free to create an issue or submit a pull request if you have suggestions for improvements or new features. Please ensure your code follows the existing style and passes all tests.

  • Steps to Contribute
  • Fork the repository.
  • Create a new branch.
  • Make your changes.
  • Submit a pull request.

By leveraging a wide array of modern web development technologies and adhering to best practices, the Movie Watchlist project not only delivers a functional and user-friendly application but also showcases the potential and versatility of fullstack development.

movie-watchlist's People

Contributors

haru-hue avatar

Stargazers

Momoh Osaze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.