Next.js movie browser app using TheMovieDB API as a data source.
Check live demo on Vercel Platform.
- Next.js - I used Gatsby before, and Next is just better and more flexible,
- Next-UI - UI library - still in beta, but I decided to give it a try to bootstrap this project and learn something new,
- TypeScript - my first TS app, previously used PropTypes to make coding a bit easier, but TS is just the next step, and I love it,
- Axios - seems popular, so why not?
- Clone this repo,
- Install dependencies
yarn install
, - Request API key on TMDB - sign up first on TMDB platform, then fill the form to get one,
- Copy
.env
to.env.local
[cp .env .env.local
] and put received key inMOVIE_DB_API_KEY
value, - Run the app with
yarn dev
, - Open browser http://localhost:3000 (port might differ if you have 3000 already taken - check console output)