This is a really simple project that shows the usage of Next.js with TypeScript on top of Jest, React LazyLoad, Enzyme and React.js with context API, for simplicity used isomorphic_unfetch.
- This project demonstrate server side redndering and client side renering of the page.
- Used React 16 context API just to relatively to store config path to share among components. (just for demonstration).
- Since two API end point was there does not require to store data in Context API but still I have store it to extend for future use.
- Dynamic Routing in Next.JS
- Imagin lazy loading with Blur effect.
- Responsive layout using latest Grid, flex properties of CSS
- used Sass for CSS styling.
- Custom font from Google font.
- used isomorphic-unfetch rather than Axios becuase this project small enough does not require heavy package like Axios.
- TSLinting is also applied.
- Used Husky package which can prevent bad git commit, git push, It will check TSlint before git commit and push
yarn install
To test the project
yarn test
To Run the project
yarn dev
Project will run in browser
http://localhost:3000/
You can see the demo app on below URL
https://nextjs-biren.herokuapp.com/
Audit Report of this demo app at slow 3G network.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.