Skip to content

kenberkeley/tmdb-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

48 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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:https://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

Releases

No releases published

Packages

No packages published