Create RealWorld application
Create a real-world application, a Medium clone, according to this repo spec
Stack:
| tool | name |
|---|---|
| web framework | tinyhttp (obv) |
| body parser | milliparsec |
| database | PostgreSQL |
| ORM | Prisma or anything else |
| auth | JWT (w/ @tinyhttp/jwt) |
| cors | @tinyhttp/cors |
| unit tests | uvu + supertest-fetch |
The whole code must be in a separate repository and the PR only needs to include a link to that repository.
example readme:
RealWorld
Example tinyhttp Medium clone following the RealWorld spec.
Check the node-tinyhttp-realworld-example-app repository.
p.s.: after completing an example, either me or the one who made the repo should open an issue to realworld repo and after that, submit a PR
@talentlessguy Hi, I'd like to give this a shot. Should this be written in JavaScript or is TypeScript ok?
@thebearingedge I think it doesn't matter that much here but I prefer JS so you can show that ESM works with Node and tinyhttp without any custom build step
and yes you can give it a shot, I can assign you to the task if you want
Ok, I'm on it. I noticed that you included the eta template engine, but the specs from RealWorld are for a REST API. It's cool if we just submit a JSON back end?
@thebearingedge oops my bad
yeah eta is not needed here
@thebearingedge ping
how is it going with the realworld app?
(not hurrying ya or anything, jsut checking if everything is alright and you're not stuck bc of tinyhttp bugs)
Hey! Yeah, it's going ok. I'm not going to lie, the initial ramp up on a 100% new set of tech was pretty rough in the beginning 😅 . I haven't used an ORM in about 5 years.
But I think I have some time today to get a couple more routes done.
Here is where the project is right now. The code will need to get rearranged quite a bit because some of the choices make no sense in the context of this setup, particularly since Prisma does not support Long Running Transactions, which is how I normally handle tests 🤷♀️
Anyway, it's been pretty fun so far! 👍
@thebearingedge nice! great to see that everything is going well
@talentlessguy Hi, I'd like to give this a shot. Should this be written in JavaScript or is TypeScript ok?
Hi, can you also produce a Typescript version please?
@thebearingedge hi, I have a little question about the status of the repo
I'm planning to release V2 in the near future (1-3 months) and have a question
will the real-world application be ready by that time? it's completely fine if it won't, don't worry about that. I'm just asking in case I could include that in the release notes of V2. otherwise, it'll be left for next release
@talentlessguy Yeah, I have some PTO coming up in a few weeks 👍
@thebearingedge hello, do you need help?
@aldy505 that would be fantastic! 👍
I probably won't have time to dedicate to the project until about two weeks.
@thebearingedge I'll open an issue on your repo about which part will I be working.
Hi guys, is the project on still ? I'd like to contribute
@jeanhdev yes it is and if you want you could fork that real world example or start your own from scratch, using the stack mentioned in readme
@talentlessguy can I give a shot at this? Any specifications not present in this thread that I need to know before I start?
@talentlessguy can I give a shot at this? Any specifications not present in this thread that I need to know before I start?
yeah sure, no specifications besides the RealWorld official guide + just use some of tech stack I suggested + create your own repo and I'll later transfer it to tinyhttp repo with you as an owner