|
| 1 | +# typescript-nextjs-redux-toolkit-material-ui-example |
| 2 | + |
| 3 | +This is a sample for `server-side rendering` using `TypeScript` , `Next.js` , `Redux Toolkit` , and `Material-UI` . |
| 4 | + |
| 5 | +`VSCode` , `prettier` and `TSLint` provide real-time formatting, syntax checking and organizing of unused imports. |
| 6 | + |
| 7 | +これは、 `TypeScript` , `Next.js` , `Redux Toolkit` , `Material-UI` を使った `サーバーサイドレンダリング` に対応したサンプルです。 |
| 8 | + |
| 9 | +`VSCode` と `prettier` と `TSLint` によって、リアルタイムに整形と構文チェックと未使用 import の整理が行われます。 |
| 10 | + |
| 11 | +## Live demo |
| 12 | + |
| 13 | +[live demo](https://typescript-nextjs-redux-toolkit-material-ui-example.now.sh/) |
| 14 | + |
| 15 | +## Features |
| 16 | + |
| 17 | +- [Visual Studio Code](https://code.visualstudio.com/) |
| 18 | +- [Typescript](https://www.typescriptlang.org/) |
| 19 | +- [Next.js](https://nextjs.org/) |
| 20 | +- [Material-UI](https://material-ui.com/) |
| 21 | +- [Redux](https://redux.js.org/) |
| 22 | +- [Redux Toolkit](https://redux-toolkit.js.org/) |
| 23 | +- [TSLint](https://palantir.github.io/tslint/) |
| 24 | + |
| 25 | +## Requirement |
| 26 | + |
| 27 | +- [Google Chrome](https://www.google.com/intl/ja_ALL/chrome/) |
| 28 | +- [Visual Studio Code](https://code.visualstudio.com/) |
| 29 | +- TypeScript v3.7 or higher( [require Optional Chaining](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#optional-chaining) ) |
| 30 | + |
| 31 | +## Install Google Chrome addon |
| 32 | + |
| 33 | +- [Redux DevTools](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=ja) |
| 34 | + |
| 35 | +## Recommended VSCode addons |
| 36 | + |
| 37 | +- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) |
| 38 | +- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) |
| 39 | +- [TSLint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint) |
| 40 | + |
| 41 | +## Usage |
| 42 | + |
| 43 | +### Download and install |
| 44 | + |
| 45 | +```bash |
| 46 | +git clone https://github.com/treetips/typescript-nextjs-redux-toolkit-material-ui-example.git |
| 47 | +cd typescript-nextjs-redux-toolkit-material-ui-example |
| 48 | +npm i |
| 49 | +``` |
| 50 | + |
| 51 | +### Start local |
| 52 | + |
| 53 | +```bash |
| 54 | +npm run dev |
| 55 | +``` |
| 56 | + |
| 57 | +### Build and start production express server |
| 58 | + |
| 59 | +```bash |
| 60 | +npm run build |
| 61 | +npm start |
| 62 | +``` |
| 63 | + |
| 64 | +## Related repository |
| 65 | + |
| 66 | +* [typescript-nextjs-redux-material-ui-example](https://github.com/treetips/typescript-nextjs-redux-material-ui-example) |
0 commit comments