Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kutyel/fp-typescript-workshop
🪐 Functional Programming in TypeScript!
https://github.com/kutyel/fp-typescript-workshop
Last synced: 3 months ago
JSON representation
🪐 Functional Programming in TypeScript!
- Host: GitHub
- URL: https://github.com/kutyel/fp-typescript-workshop
- Owner: kutyel
- License: mit
- Created: 2023-09-29T11:36:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T10:18:01.000Z (9 months ago)
- Last Synced: 2024-10-05T14:37:31.838Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 83 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Functional Programming in TypeScript Workshop
[![CI Build](https://github.com/kutyel/fp-typescript-workshop/actions/workflows/main.yml/badge.svg)](https://github.com/kutyel/fp-typescript-workshop/actions/workflows/main.yml)
⚡️ Let's learn some functional programming together!
We will be using the amazing [Effect.ts](https://effect.website/) library because it is designed from the ground up to work nicely with TypeScript! 😎
## Requirements
Install [Bun](https://bun.sh/docs/installation)!
> This project uses Bun instead of Node as an experiment and to make things crazy fast! 🚄
If you are using homebrew:
```sh
$ brew tap oven-sh/bun # for macOS and Linux
$ brew install bun
```## Run the tests and solve the exercises!
There are 3 rounds of exercises: `functors`, `applicatives` and `monads`.
My recommendation is that you run only the specific test file in watch mode and solve the exercises in that order before moving to the next challenge. 😉
```sh
$ npm t -- functors --watch
$ npm t -- applicatives --watch
$ npm t -- monads --watch
```Happy coding! ⚡️