Skip to content

Apfirebolt/vue_imdb_clone

Repository files navigation

Vue IMDB App

An app written in Vue which shows IMDB data coming from Rapid API. It has movies and tv shows sections.

Vue.js Vite JavaScript HTML5 CSS3 Tailwind CSS

Table of Contents

  1. Project Briefing
  2. Technologies Used
  3. Screenshots
  4. Updates
  5. Thank You

Project Briefing

This project uses an API from Rapid API which contains IMDB data for movies. These are the headers used in the interceptor file for calling APIs.

import axios from 'axios';

let baseURL = 'https://imdb236.p.rapidapi.com/api/';

// add x-rapidapi-host and x-rapidapi-key headers
const headers = {
    'x-rapidapi-host': import.meta.env.VITE_RAPIDAPI_HOST,
    'x-rapidapi-key': import.meta.env.VITE_RAPIDAPI_KEY
};

const httpClient = axios.create({ baseURL, headers });

// print request headers
httpClient.interceptors.request.use(request => {
    return request;
});

export default httpClient;

Create an env file with the secrets

VITE_RAPIDAPI_HOST=host.p.rapidapi.com
VITE_RAPIDAPI_KEY=your_key_here

Technologies Used

  • Vue 3
  • Vite
  • JavaScript (ES6+)
  • HTML5
  • CSS3

Writing Test cases

Test cases are written using Vitest framework. Install the related dependencies for the testing framework and tweak vite config settings.

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  test: {
    environment: 'happy-dom',
  },
  server: {
    port: 8080
  }
})

Screenshots

Shows Movies View Login Indian Movies

Updates

  • v1.0.0: Initial release with basic functionality.
  • v1.1.0: Added new features and improved performance.

Thank You

Thank you for exploring the Vue IMDB App! Feel free to contribute or provide feedback to help improve the project. If you liked this project consider giving it a ⭐

Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.

About

An IMDB clone using Rapid API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages