|
| 1 | +# typescript-nextjs-redux-material-ui-example |
| 2 | + |
| 3 | +This using typescript, next.js, redux, material-ui is simple, and is a sample corresponding to the server side rendering. |
| 4 | + |
| 5 | +By VSCode and prettier and TSLint, realtime code format and realtime sentence structure check and rearranging of unused import are carried out in real time. |
| 6 | + |
| 7 | +これは、typescript, next.js, redux, material-ui を使った、シンプルでサーバーサイドレンダリングに対応したサンプルです。 |
| 8 | + |
| 9 | +VSCode と prettier と TSLint によって、リアルタイムに整形と構文チェックと未使用 import の整理が行われます。 |
| 10 | + |
| 11 | +## Features |
| 12 | + |
| 13 | +- [Google App Engine Node.js Standard Environment](https://cloud.google.com/appengine/docs/standard/nodejs/) |
| 14 | +- [Visual Studio Code](https://code.visualstudio.com/) |
| 15 | +- [yarn](https://yarnpkg.com/lang/ja/) |
| 16 | +- [Typescript v3](https://www.typescriptlang.org/) |
| 17 | +- [Next.js v7](https://nextjs.org/) |
| 18 | +- [MATERIAL-UI v3](https://material-ui.com/) |
| 19 | +- [Redux](https://redux.js.org/) |
| 20 | +- [TSLint](https://palantir.github.io/tslint/) |
| 21 | + |
| 22 | +## Requirement |
| 23 | + |
| 24 | +- [Google Chrome](https://www.google.com/intl/ja_ALL/chrome/) |
| 25 | +- [Visual Studio Code](https://code.visualstudio.com/) |
| 26 | +- [yarn](https://yarnpkg.com/lang/ja/) |
| 27 | + |
| 28 | +## Install Google Chrome addon |
| 29 | + |
| 30 | +- [Redux DevTools](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=ja) |
| 31 | + |
| 32 | +## Recommended VSCode addons |
| 33 | + |
| 34 | +- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) |
| 35 | +- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) |
| 36 | +- [TSLint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint) |
| 37 | +- [Bracket Pair Colorizer 2](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2) |
| 38 | + |
| 39 | +## Usage |
| 40 | + |
| 41 | +### Download and install |
| 42 | + |
| 43 | +```bash |
| 44 | +git clone https://github.com/treetips/typescript-nextjs-redux-material-ui-example.git |
| 45 | +cd typescript-nextjs-redux-material-ui-example |
| 46 | +yarn |
| 47 | +``` |
| 48 | + |
| 49 | +### Start local |
| 50 | + |
| 51 | +```bash |
| 52 | +yarn dev |
| 53 | +``` |
| 54 | + |
| 55 | +### Build and start production express server |
| 56 | + |
| 57 | +```bash |
| 58 | +yarn build |
| 59 | +yarn start |
| 60 | +``` |
| 61 | + |
| 62 | +## For google appengine |
| 63 | + |
| 64 | +### [Optional] appengine deploy Settings |
| 65 | + |
| 66 | +```bash |
| 67 | +vi ./deploy.sh |
| 68 | +``` |
| 69 | + |
| 70 | +### Deploy appengine |
| 71 | + |
| 72 | +```bash |
| 73 | +./deploy.sh |
| 74 | +``` |
0 commit comments