A bare-bones clone of The Movie Database (TMDb) using React/Redux and Express.
Full-stack JavaScript: Node.js is used to power the server and React (Create React App) to power the frontend app. All of the code you'll touch in this codebase will be JavaScript.
All the data is provided by TMDb. The server acts as a proxy between the React app and the TMDb API.
You need to have Node.js installed on your machine and a valid TMDb API key.
- Clone this repository or download zip.
- Copy
.env.example
to.env
and paste your TMDb API key in the correct place. - Install dependencies:
npm run setup
. - Run for development:
npm run dev
.- Visit http://localhost:3000 if browser tab doesn't open automatically
- Run for production:
npm run build
thennpm start
.
Jest is used for unit and integration testing.
npm run test:client
: Runs the tests of the React appnpm run test:server
: Runs the tests of the Node app (No tests are implemented yet! 🤷)
Cypress is used for E2E testing.
npm run test:e2e
: Opens the Cypress Test Runner in interactive mode.npm run test:e2e:run
: Runs Cypress tests to completion. By default will run all tests headlessly in the Electron browser.
This project is licensed under the terms of the MIT license.