Coder Social home page Coder Social logo

jeyofdev / movie-app-react-graphql Goto Github PK

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

This is a Movies App using React, Apollo, Graphql Firebase and The Movie Database (TMDB) API.

Home Page: https://movie-app-react-graphql.vercel.app

JavaScript 0.79% Shell 0.02% TypeScript 98.96% HTML 0.17% CSS 0.06%
apollo-client apollo-server firebase-auth javascript react typescript

movie-app-react-graphql's Introduction

Movies App with Graphql and React

This is a Movies App using React, Apollo, Graphql Firebase and The Movie Database (TMDB) API.

Tools

  • Vite Next Generation Frontend Tooling
  • React React 18.
  • Typescript JavaScript with syntax for types.
  • ESLint Find and fix problems in JavaScript and typescript code.
  • Prettier Code formatter.
  • husky Husky improves your commits.
  • firebase Firebase app development platform.
  • materialUI Move faster with intuitive React UI tools.
  • apollo-client Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL.
  • Apollo-server Apollo Server is a spec-compliant GraphQL server that's compatible with any GraphQL client.
  • react-hook-form Performant, flexible and extensible forms with easy-to-use validation.
  • lingui JavaScript library for internalization (i18n) of JavaScript projects.
  • codegen CodeGen is a family of open-source model for program synthesis.
  • Graphql A query language for an API.

Getting starting

Prerequisites

  • node
  • npm

Dependencies

Install dependencies of api :

cd api && npm install

Install dependencies of client :

cd client && npm install

Environment variables

Creates the .env file in the root directory of the api folder :

cd api && touch .env

In the .env, set the environment variables

Example :

API_PORT=4040
TEST_API_PORT=4004 # for tests
TMDB_API_KEY=your-TMDB-api-key # Get your TMDb API key and paste here

Creates the .env file in the root directory of the client folder :

cd client && touch .env

In the .env, set your api url.

Example :

VITE_GRAPHQL_URL=http://localhost:4040/graphql

# firebase config
VITE_API_KEY=
VITE_AUTH_DOMAIN=
VITE_PROJECT_ID=
VITE_STORAGE_BUCKET=
VITE_MESSAGING_SENDER_ID=
VITE_APP_ID=

Start the app in dev mode

Run your GraphQL server and your React app with this command :

npm run dev

Navigate to http://localhost:{yourport} in your browser to explore the API with the Apollo Playground.

Navigate to http://localhost:8080 in your browser to run the React app.

Production

Project available on this link.

Testing

run tests of the api :

npm run test:api

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.