A React boilerplate for the TMDB hackathon held at Create, May, 2017
-
Install Node.js (choose Current)
- From nodejs.org (All platforms)
- Or using Homebrew (Mac)
- Or any other package manager
-
git clone
this repo -
Install dependencies (at the root of the repo):
npm install
- Sign up - TMDB
- Verify your email
- Create an API Token
- Click Create
- Choose Developer
- Accept the terms
- Fill in the form
- Type: Website
- App Name and URL: your-name-tmdb-hackathon
- Click Submit to see which fields are required (most are, just fill them in)
- Set your TMDB token under
config/config.js
>TMDB_API_TOKEN
npm start
- Open
http://localhost:8080
npm run build
- Must use a server that redirects missing routes back to
index.html
npm i -g live-server
cd dist/
live-server --entry-file=index.html