irizar

Description

Cuis web framework

Details

Source
GitHub
Dialect
cuis (95% confidence)
License
MIT
Stars
1
Created
Nov. 9, 2019
Updated
May 7, 2020
Topics
cuis cuis-smalltalk smalltalk web

Categories

Web

README excerpt

# Irizar

[![Build Status](https://travis-ci.com/gstn-caruso/irizar.svg?branch=master)](https://travis-ci.com/gstn-caruso/irizar)

![Penguins with Irízar Icebraker in the background](https://upload.wikimedia.org/wikipedia/commons/c/c6/Almirante_Ir%C3%ADzar_en_la_CAV_2018-2019_02.jpg)


Irizar is a Cuis web framework build on top of WebClient which allows to define routes and controllers in a handy way.

This is a work in progress, so feel free to fork and open a PR!

## Getting started

1. You would need a [Cuis smalltalk image](https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev).
2. Once it is running, you just drag and drop the `Irizar.pck.st` file into Cuis.
3. Open a Workspace and just run `IrizarWebServer instance listenOn: 8080`
4. Register a route:
```Smalltalk
IrizarWebServer instance 
	handle: '/smalltalks' 
	verb: #GET 
	with: [ :request | request send200Response: '{ "hello": "Smalltalks" }' contentType: 'application/json' ]
```
← Back to results