Skip to content

sapristi/alife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. Description
  2. Setting up
    1. OCaml libs dependancies
    2. Install
  3. Run
  4. Usefull stuff

Description

YAACS is an artificial chemistry simulator, centered around petri nets.

This project includes a webserver, written in OCaml, as well as a web client, written in Rescript.

Setting up

You will need a working OCaml developping environment, ideally set-up with opam. Dune is used as a build system.

OCaml libs dependancies

See output of dune build

Building and running

Running dune build @local_install will output the yaacs_server binary as well as the client and some data into the ./dist directory. You can then launch the program with

cd ./dist
./yaacs_server

By default, the server will be accessible on https://localhost:1512.

Run ./yaacs_server --help to see available options.

Build the server

Run dune build

Build the client

Rune dune build @client

Dev mode for the client

  • Run yarn install from the root dir to install the dependancies.
  • Run bsb -make-world -w to build rescript files into javascript (watch mode)
  • From .src/gui/client, run yarn server to serve the built files
  • Run the server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published