This project was bootstrapped with Create React App.
It uses the standard scripts
Before you start, you need to:
- get an API key from MovieDB, create a
copy of
src/config.jsnamedsrc/config.local.jsand paste it there. - run npm/yarn install
The folder structure looks the following:
root/
public/
src/
Components/
utils/
For the project to build, these files must exist with exact filenames:
public/index.htmlis the page template;src/index.jsis the JavaScript entry point.
The src/ directory is the root of the project, it holds top-level components and configuration files.
The src/Components/ directory holds react components & tests. We don't use routing. If it were
to be added any time in the future, pages should go to a separate directory src/Pages preferably.
The utils/ directory contains utility functions.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
We use enzyme for rendering
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!