Skip to content

open-sorcerers/madserver-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Madserver example

This project is an example use case of consumption and usage of the madlib wrapper for expressjs available here: https://github.com/open-sorcerers/madserver.

Instructions

To run it you should have madlib and nodejs installed and run the following:

madlib install
madlib compile -i src/Main.mad
node build/Main.mjs

Here is the expected output:

$ ls
README.md         madlib.json       package-lock.json src
$ madlib install
Installing dependencies ...
Packages to install:
  - Madserver
nodejs modules installed for 'Madserver'
package Madserver installed
$ ls
README.md         madlib.json       madlib_modules    node_modules      package-lock.json src
$ madlib compile -i src/Main.mad
$ ls
README.md         build             madlib.json       madlib_modules    node_modules      package-lock.json src
$ node build/Main.mjs
Server running on port 3000...

About

Sample project to showcase madserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published