sci-fi-viewer

Sci-Fi Tracker 🚀

A React-based web application for discovering, rating, and tracking science fiction movies and TV series. The app integrates with The Movie Database (TMDB) API and provides elegant fallback to curated mock data.

🌐 Live Demo: https://ben-newman10.github.io/sci-fi-viewer

Features

Screenshots

The app features a modern dark space theme with smooth animations and hover effects, displaying content in an adaptive grid layout.

Tech Stack

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/ben-newman10/sci-fi-viewer.git
    cd sci-fi-viewer
    
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm start
    
  4. Open http://localhost:3000 to view it in the browser.

Available Scripts

Usage

  1. Browse Content: View the curated collection of sci-fi movies and TV series
  2. Rate Items: Click the rating buttons to mark content as loved, watched, or pass
  3. Add Comments: Use the text area to add your personal thoughts
  4. Filter: Use the filter buttons to view content by rating status
  5. Toggle Data Source: Switch between TMDB API and mock data using the toggle

Data Sources

TMDB API

Mock Data

Architecture

Deployment

The app is automatically deployed to GitHub Pages using GitHub Actions:

Manual Deployment

You can also deploy manually using:

npm run deploy

Environment Setup

For TMDB API integration, you’ll need:

  1. A TMDB API key from themoviedb.org
  2. Set REACT_APP_TMDB_API_KEY as a GitHub repository secret
  3. Configure GitHub Pages source as “GitHub Actions”

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is open source and available under the MIT License.

Acknowledgments