Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyjoeseph/fp-ts-routing-examples
Companion to the youtube series
https://github.com/anthonyjoeseph/fp-ts-routing-examples
Last synced: 4 months ago
JSON representation
Companion to the youtube series
- Host: GitHub
- URL: https://github.com/anthonyjoeseph/fp-ts-routing-examples
- Owner: anthonyjoeseph
- Created: 2020-05-30T04:58:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T20:46:09.000Z (about 2 years ago)
- Last Synced: 2024-08-01T19:58:44.634Z (7 months ago)
- Language: TypeScript
- Size: 4.5 MB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Examples
1. React Router
1. Location & History APIs
0. React Router
1. pathname, anchor
2. pushState, onpopstate
- Bonus - What's history state?
3. Union types
4. Tagged Unions
5. fp-ts-routing
- Bonus: Ints, Queries and Types
6. morphic-ts
- Bonus: verified
- Bonus: other sum type libraries
7. morphic-ts-routing
- (Optional) Next.js & SSR
1. Router
2. Removing flicker
3. Hyradtion-safe URL
4. Data fetch
5. Hydration-safe Data Fetch
2. Data Model
1. TodoMVC
2. react-testing-library
3. router
4. SSOT
5. test
3. Reactive Architecture with Redux
1. redux
1. global state
2. store and reducer
3. morphic-ts
4. test
5. router attempt (failure)
6. Bonus: monocle-ts
2. rxjs
1. currying, pipe & flow
2. rxjs
3. Bonus: testing the router with rxjs
3. redux-observable
1. onpopstate
2. pushState
3. Test the epic
4. TodoMVC in purer reactive architectures
1. [Elm](https://github.com/kadikraman/elm-todo/blob/master/src/Main.elm)
2. [Reflex](https://github.com/reflex-frp/reflex-todomvc/blob/develop/src/Reflex/TodoMVC.hs)
3. [Halogen](https://github.com/holdenlee/halogen-todo/blob/master/src/Main.purs)## Running the Example Code
You can run the code in this repository by pointing the `App` component import in `src/index.ts` to the `App.ts` file corresponding to the video.
For the nextjs/ssr tutorial, you can run the code in this repository by pointing the `handleRoute` function import in `server/server.tsx` to the `handleRoute.ts` file corresponding to the video, as well as the `clientAppElement` function import in `server/hydrate.tsx`.
## SSR Setup
[Express SSR (using create-react-app)](https://gist.github.com/anthonyjoeseph/bdcf9be5cfc515cad334b687237c1556)
### This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).