/tmdb-react

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

Primary LanguageJavaScript

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