Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juspay/purescript-presto
Write Apps like Mathematical Equations!
https://github.com/juspay/purescript-presto
app-development functional-programming native purescript
Last synced: 2 months ago
JSON representation
Write Apps like Mathematical Equations!
- Host: GitHub
- URL: https://github.com/juspay/purescript-presto
- Owner: juspay
- License: other
- Created: 2017-11-01T20:18:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T04:42:36.000Z (about 1 year ago)
- Last Synced: 2024-04-01T01:09:40.611Z (3 months ago)
- Topics: app-development, functional-programming, native, purescript
- Language: PureScript
- Homepage:
- Size: 3.34 MB
- Stars: 207
- Watchers: 30
- Forks: 34
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Lists
- awesome-purescript - purescript-presto - Write Apps like Mathematical Equations! (UI Libraries)
- awesome-concur - presto - Write apps like mathematical equations. (Related / These are libraries I have found that seem to be atleast tangentially related to the Concur model.)
- awesome-stars - juspay/purescript-presto - Write Apps like Mathematical Equations! (PureScript)
README
#
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](https://www.youtube.com/watch?v=HLEwYghBjo8)
[Slides](https://speakerdeck.com/vimalkumar/presto-at-functional-conf-2017)## 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](https://github.com/juspay/purescript-presto/tree/master/examples/) directory for more samples.
## Examples
You can try out the below examples.
* [Counter Vanilla](https://github.com/juspay/purescript-presto/tree/master/examples/counter-html)
* [Bill Pay App using React](https://github.com/juspay/purescript-presto/tree/master/examples/billpay-react)
* [Bill Pay App using Presto-UI](https://github.com/juspay/purescript-presto/tree/master/examples/billpay-presto-ui)## Learning Presto
[Presto Guide](https://juspay.gitbooks.io/presto-guide/content/) 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***](https://play.google.com/store/apps/details?id=in.org.npci.upiapp&hl=en) - Payments App, 17 Million Total Users
[***JuspaySafe***](https://juspay.in/juspay-safe) - Payments Browser, 800 Million Txns Processed
[***JuspayFuel***](https://play.google.com/store/apps/details?id=in.juspay.euler.pregel&hl=en) - Payments Solution for Gas Stations, 1000s of Outlets## Community
Get updates on improvements to Presto and chat with the project maintainers and community members.
Join a discussion or start one at our [forum](http://forum.juspayuniversity.in) or [gitter channel](https://gitter.im/Purescript-Presto/Lobby#).
## Contributing
See the [CONTRIBUTING.md](CONTRIBUTING.md) file for details.