Movie Board - a simple react app written in typescript. This project was completed as part of a take home.
This is super crude and done quickly, not everything is "best practice" but I tried my best. Some features are not finished the following should be:
- Search
- Movie Details
The project is split into 3 Typescript projects:
www
- React App
server
- Express API proxy
commonTypes
- common types between API and React App
To build the app follow the steps:
- Build common Types
cd ./commonTypes
npm i
npm run build
cd ../
- Build server Requires theMovieDB API key (https://developers.themoviedb.org/)
cd ./server
vim .env
or export env var- add access token as env var
MOVIEDB_ACCESS_TOKEN
- MUST be
API Read Access Token (v4 auth)
NOTAPI Key (v3 auth)
- add access token as env var
npm i
npm run build
cd ../
- Build web app
Make sure you have built the server beforehand so that www can export into the servers build folder
npm i
npm run build
cd ..
- Run app
cd ./server
andnpm start
By default the app runs on port 8080
, can be changed by exporting PORT
env var
Note: I had to wrap up this project in a hurry, I do intend to work on it a bit more when I have some time and there are a lot of things I wanted to add, these last weeks have been crazy...