thinksource / nwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js with TypeScript

How to use

curl https://codeload.github.com/mui-org/material-ui/tar.gz/master | tar -xz --strip=2  material-ui-master/examples/nextjs-with-typescript
cd nextjs-with-typescript

Install it and run:

npm install
npm run dev

or:

Edit on CodeSandbox

The idea behind the example

Next.js is a framework for server-rendered React apps.

Troubleshooting

Warning: Prop className did not match.

If you get this warning, please make sure that you configure getInitialProps in pages/_document.tsx correctly. Check the code in this example for more details.

Api rule

if user in post method request should be userId replace for auth

The Database edit

Genertation of new schema

npm run typeorm -- migration:generate -- -n name

Run Schema

npm run typeorm -- migration:run

About


Languages

Language:TypeScript 99.9%Language:CSS 0.1%