kenberkeley / tmdb-react

A TMDb demo powered by Create React App. Online demo πŸ‘‰

Home Page:https://kenberkeley.github.io/tmdb-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A TMDb demo powered by Create React App (CRA)

The README generated by Create React App was moved to README-CRA.md

Β§ Online demo

Click here.

Β§ Features

$ Quick Start

$ git clone https://github.com/kenberkeley/tmdb-react.git
$ cd tmdb-react/

# Install dependencies
$ npm i

# Run!
$ npm start

Then open http://localhost:3000

$ Project Structure

For the whole project structure, please turn to Folder Structure (CRA Doc).

Only src/ will be elaborated below.

# Trivial folders/files had been omitted
src/
β”œβ”€β”€ assets/
β”œβ”€β”€ constants/ # All global scope keys (URL query, storage, etc) should go here to avoid name collisions
β”œβ”€β”€ layouts/
β”‚   └── default/
β”‚       β”œβ”€β”€ comps/ # Use by default layout only
β”‚       β”‚   └── Header.js
β”‚       └── index.js
β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ home/
β”‚   β”‚   β”œβ”€β”€ comps/  # Use by home page only
β”‚   β”‚   └── index.js
β”‚   β”œβ”€β”€ watchlist/
β”‚   β”‚   β”œβ”€β”€ comps/
β”‚   β”‚   └── index.js
β”‚   └── index.js # routes config
β”œβ”€β”€ store/ # https://github.com/rematch/rematch
β”‚   β”œβ”€β”€ models/
β”‚   └── index.js
β”œβ”€β”€ types/ # Centralized proptypes (https://bit.ly/2G3V6Ou)
β”œβ”€β”€ utils/
β”œβ”€β”€ App.js
└── index.js

Reference:

Β§ Deployment

$ npm run deploy

Check out Deployment (CRA Doc) for more information.

Β§ TODO

  • Testings (Unit & E2E)
  • Responsive layout

About

A TMDb demo powered by Create React App. Online demo πŸ‘‰

https://kenberkeley.github.io/tmdb-react


Languages

Language:JavaScript 91.0%Language:HTML 9.0%