https://github.com/me7/imba-realworld
https://github.com/me7/imba-realworld
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/me7/imba-realworld
- Owner: me7
- Created: 2024-05-22T07:20:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T02:21:10.000Z (about 2 years ago)
- Last Synced: 2024-05-28T12:06:09.757Z (about 2 years ago)
- Language: Imba
- Homepage: https://imba-realworld.surge.sh/
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# imba-realworld
- implement https://codebase.show/projects/realworld using [imba](imba.io)
- repo https://github.com/me7/imba-realworld
- reference (imba v1) https://github.com/cartonalexandre/imba-realworld-example-app
- result in https://imba-realworld.surge.sh/
- dev in idx https://idx.google.com/imba-realworld-8972783 you can dev online with only browser. dont forget to edit dev.nix

## how do i
- [ ] articles create read update delete, favorite list
- [x] get /articles
- [x] get /articles/:slug
- [ ] users create read update, follow
- [ ] comments create read delete
- [ ] many more route to implement 😓
## TIL
- swagger api page https://main--realworld-docs.netlify.app/docs/specs/frontend-specs/swagger
- [tag App < Shared](https://github.com/cartonalexandre/imba-realworld-example-app/blob/7b9d82535334b7eb7fafe734c233514f7d7114c1/src/components/shared.imba#L1) when shared have header/isLog/isMine
- [util.imba](https://github.com/cartonalexandre/imba-realworld-example-app/blob/7b9d82535334b7eb7fafe734c233514f7d7114c1/src/components/util.imba) have share def - api, parseJSON, formatDate, encode
- can pre-define prop by create [User and Comment class](https://github.com/cartonalexandre/imba-realworld-example-app/blob/7b9d82535334b7eb7fafe734c233514f7d7114c1/src/components/register.imba#L7-L13)
```imba
def register
let user = User.new();
user.username = @username
user.email = @email
user.password = @password
api("users", "post", user, @headers).then do |data|
```
- imba v1 repo build frontend in 640 LOC only `scc --count-as imba:py`
-