Coder Social home page Coder Social logo

tinder-for-movies's Introduction

Tinder for movies

It is Single-page application for selecting a movie to watch using your phone.

Example data.
/recommendations
[{
id: “1and3011”,
imageURL:
“https://images-na.ssl-images-amazon.com/images/M/MV5BMTUzNTE2NTkzMV5BMl5
BanBnXkFtZTgwMDAzOTUyMDI@._V1_SY1000_CR0,0,674,1000_AL_.jpg”,
title: “Inferno”,
summary: “Lorem ipsum….”,
rating: 5.3},
{id: “2301abc”,
imageURL:
“https://images-na.ssl-images-amazon.com/images/M/MV5BOTAzODEzNDAzMl5BMl5
BanBnXkFtZTgwMDU1MTgzNzE@._V1_SY1000_CR0,0,677,1000_AL_.jpg”,
title: “Star Wars: Episode VII - The Force Awakens”,
summary: “Lorem ipsum….”,
rating 8.2}
]

• The application shows the movie titles, image, summary and rating.

• The user can accept or reject the suggestion. Accepting is done by a green button. Rejecting is done by red button or swipe.

• The backend gets notified of a user's decision by a PUT call to /recommendations//accept or /recommendations//reject URL.

Framework:

• Next.js

• Jest, react-testing-library

• React hooks

• TypeScript.

• Usage of context provider to decouple data fetching from presentation layer.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

tinder-for-movies's People

Contributors

tadeqq 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.