• Stars
    star
    174
  • Rank 219,104 (Top 5 %)
  • Language Reason
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quick Start / Sample Revery Application

Build Status

Revery Quick Start

This is a minimal Revery application to get you started.

Prerequisites

See the requirements for building Revery

Getting started

# Clone the repository
git clone https://github.com/revery-ui/revery-quick-start

# Go into the repository
cd revery-quick-start

# Install dependencies
esy install

# Build dependencies
esy build

NOTE: The first build will take a while - building the OCaml compiler and dependencies takes time! Subsequent builds, though, should be very fast.

Once built, the application binary will be in the _build/install/default/bin - you can run it like:

  • _build/install/default/bin/App

or using esy with the script specified in package.json:

  • esy run

What are all these files?

The most important files are:

A Revery application also needs the following files:

  • package.json - esy configuration - lists the Reason/OCaml dependencies.
  • dune / dune-project - build configuration files used by Dune.
  • .opam - metadata used by the build system.

Releasing

To create packages for distribution, follow these steps:

  • npm install -g revery-packager

From the revery-quick-start folder, run:

  • revery-packager

Once complete, there will be application packages available in the _release folder.

Resources

Next steps

Here's a few challenges to see if you've got the basics:

  • Add an Image component
  • Respond to user input
  • Create a frameless window

License

MIT License

More Repositories

1

revery

⚡ Native, high-performance, cross-platform desktop apps - built with Reason!
Reason
8,071
star
2

reason-reactify

🚀 Transform a mutable tree into a functional React-like API
OCaml
103
star
3

revery-terminal

Barebones terminal emulator built with ReasonML + Revery + libvterm
Reason
80
star
4

reason-glfw

Cross-platform GLFW / OpenGL ES / WebGL bindings for Reason
C
46
star
5

rench

Reason Native Cross-platform Helpers - a Node-inspired API for Reason
Reason
46
star
6

revery-workshop

📝 Revery Workshop Materials
Reason
39
star
7

isolinear

Elm-inspired state management framework for native Reason
Reason
39
star
8

revery-packager

Helper utility to package Revery applications into installable app bundles
JavaScript
37
star
9

reason-skia

Reason bindings for the skia 2D graphics library https://skia.org/
Reason
35
star
10

reason-fontkit

📝 Reason / OCaml bindings to the freetype2+harfbuzz library
JavaScript
21
star
11

revery-playground

Live, interactive playground for Revery examples
OCaml
17
star
12

revery-hacker-news

Reason
16
star
13

reason-libvterm

Reason bindings for libvterm: https://github.com/neovim/libvterm
Reason
8
star
14

revery-quick-start-ocaml

revery-quick-start, with OCaml syntax
OCaml
8
star
15

revery-fetch

A Fetch-like API for Reason, usable in both JSOO and native apps
OCaml
7
star
16

reason-font-manager

A port of Node.js font-manager for native ReasonML / OCaml
C++
6
star
17

esy-sdl2

Esy-enabled build for SDL2
C
5
star
18

reason-harfbuzz

Reason API for harfbuzz
C++
4
star
19

esy-angle-prebuilt

Prebuilt binaries for Google's ANGLE library
Shell
3
star