purescript-presto
purescript-presto copied to clipboard
Write Apps like Mathematical Equations!
Write apps like equations!
Code as simple and precise as Mathematical Expressions. Presto is written in PureScript harnessing the powers of Functional Programming & Category Theory. What you get is scalable, performant code with elegant abstractions. Our attempt with Presto is to really simplify the app development process.
Talk on Presto @FunctionalConf
Slides
Peerequisites
Quickstart
You can get your hands dirty by building a mobile recharge app using Presto
git clone https://github.com/juspay/purescript-presto.git
cd purescript-presto/examples/billpay-react
npm i
bower i
npm start
Open http://localhost:8080/dist/ in your browser.
Code Snippet
billPayFlow :: Flow BillPayFailure StatusScreenAction
billPayFlow = do
_ <- UI.splashScreen
operators <- Remote.fetchOperators
operator <- UI.chooseOperator operators
mobileNumber <- UI.askMobileNumber
amount <- UI.askAmount
result <- Remote.payBill mobileNumber amount operator
UI.billPayStatus mobileNumber amount result
See examples directory for more samples.
Examples
You can try out the below examples.
Learning Presto
Presto Guide makes it easy to get started and start building great apps very quickly. We are continually improving Presto's documentation and welcome suggestions of topics we could explain in greater detail. Please send an email to [email protected] with your requests.
Add Presto to your existing project
bower i purescript-presto
Apps in Production
BHIM - Payments App, 17 Million Total Users
HyperSDK - A cross-platform, custom branded payment page solution. A single integration gives access to all and ever-changing payment methods.
Yatri - Yatri is a platform for planning your travel in Ernakulam. View the schedules for Kochi Metro or book taxi rides from Ernakulam to anywhere in Kerala, with local taxi operators.
GemSahay - The GeM Sahay mobile application enables you to apply for and avail short term financing offered by Banks and NBFCs such as Kotak Mahindra Bank, UGRO Capital, Tata Capital, 121 Finance on the Purchase Orders that you receive on the GeM portal. This program has participation from some of the top lenders in the country.
JuspayFuel - Payments Solution for Gas Stations, 1000s of Outlets
Community
Get updates on improvements to Presto and chat with the project maintainers and community members.
Raise github issues as required and maintainers will reach out to you or drop an email to [email protected].
Contributing
See the CONTRIBUTING.md file for details.