This is a Next.js project created for inGaia front-end challenge. It's a Rick and Morty application that uses the community API to fetch data of the characters. By default, the app loads all the characters using Static Site Generation from Next.js and all the subsequent requests are made on the client side.
You can check the project demo version here.
This project uses lot of stuff as:
- TypeScript
- NextJS
- Styled Components
- Jest
- React Testing Library
- Storybook
- Eslint
- Prettier
- Husky
- GraphQL
- Apollo
First, run the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
You can check the each component in isolation from the application using Storybook:
npm run storybook
# or
yarn storybookThis application has 100% coverage in unit and integration tests, you can check by running:
npm run test
# or
yarn testdev: runs your application onlocalhost:3000build: creates the production build versionstart: starts a simple server with the build production codelint: runs the linter in all components and pagestest: runs jest to test all components and pagestest:watch: runs jest in watch modestorybook: runs storybook onlocalhost:6006build-storybook: create the build version of storybook
