Skip to content

billba/prague

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prague

A library for using function programming concepts to more concisely and expressively code in apps like games and chatbots. I thought of it as I walked around the city of Prague on a sunny Spring day. This is not an official Microsoft project.

Major features of Prague:

  • strongly-typed when using TypeScript (but you don't have to use TypeScript)
  • flexibly asynchronous - mix functions that return Promises with functions that don't
  • utilizes and promotes functional programming (you do actually have to use functional programming, but you don't have to know anything about it to get started)

Building Prague

  • clone this repo
  • npm install
  • npm run build (or npm run watch to build on file changes)

To add to your app

  • npm install prague

Tutorial

The Prague tutorial starts here.

Samples

There is a simple chatbot sample here.

After building Prague, run it by node lib/samples/runSimpleBot.js, then try saying:

My name is {your name here}
Je m'appelle {your name here}
Gone fishing
Howdy y'all, I'm { your name here}
Back to work
Howdy y'all, I'm { your name here}
Goodbye