Create a new project:
npx degit digitallyinduced/thin-typescript-react-starter myprojectOn first start install the npm dependencies:
npm installSet the BACKEND_URL in .env to your project's url:
# .env
BACKEND_URL=https://REPLACE ME.di1337.comAfter this you can start the web server and esbuild watcher:
npm run devThe application server will not display type errors by default. For that you need to start a second process:
npm run typecheckBefore the first type check, open the Project Settings and install the provided TypeScript type declaration for your project.
export BACKEND_URL="https://REPLACE ME.thinbackend.app"
npm run build