- This application is developed on top of node version
12
. Since it is an outdated version, I have added.nvmrc
config file. If you have nvm in your system, you can runnvm install
command to install the relevant node version. - Rename
.env.sample
file as.env.local
and replace{OMDB_API_KEY_GOES_HERE}
with you OMDB Api key. - Run
npm install
to install dependencies.
- Run
npm run build
command to build the application. - Once it is complete, run
npm run start
to run the application. Visithttp://localhost:3000
If you want to run the development server, you can |use
npm run dev
command.
I have used Storybook
to create and organize all the UI components.
To run storybook, build that by running npm run build-storybook
and opening the index.html
file in the web browser.
To run unit tests, run npm run test
command. And if you want to check on test coverage, you can run npm run test:coverage
- Next.js
- Typescript
- Emotion - CSS in JS with Theme support
- Jest with testing library
- Storybook
- Eslint with airbnb configuration
- Prettier
According to the design, we have a year range selector. However, OMDB API doesn't support that. So I used only the lowest year in the range for the API.