Skip to content

digitallyinduced/thin-rescript-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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