Create a new project:
npx degit digitallyinduced/thin-rescript-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.comBefore you can start to code with ReScript, you need to install the type bindings for IHP Backend. For that open your
IHP Backend Project, click SCHEMA -> Type Definitions and then run the npm install command listed there for ReScript types.
After this you can start the web server and the compiler:
# Start compiler
npm run rescript:dev
# Start server, Run this in a second terminal window
npm run dev