digitallyinduced / thin-rescript-starter

https://thin.dev/
1 stars 0 forks source link
react rescript rescript-react thin-backend

Thin ReScript Starter

Usage

Install

Create a new project:

npx degit digitallyinduced/thin-rescript-starter myproject

On first start install the npm dependencies:

npm install

BACKEND_URL

Set the BACKEND_URL in .env to your project's url:

# .env
BACKEND_URL=https://REPLACE ME.di1337.com

Type Definitions

Before 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.

Run

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