tinyhttp icon indicating copy to clipboard operation
tinyhttp copied to clipboard

Create RealWorld application

Open v1rtl opened this issue 5 years ago • 17 comments

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

v1rtl avatar Oct 09 '20 10:10 v1rtl

@talentlessguy Hi, I'd like to give this a shot. Should this be written in JavaScript or is TypeScript ok?

thebearingedge avatar Mar 29 '21 01:03 thebearingedge

@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

v1rtl avatar Mar 29 '21 16:03 v1rtl

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 avatar Apr 01 '21 16:04 thebearingedge

@thebearingedge oops my bad

yeah eta is not needed here

v1rtl avatar Apr 01 '21 18:04 v1rtl

@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)

v1rtl avatar Apr 25 '21 11:04 v1rtl

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 avatar Apr 25 '21 15:04 thebearingedge

@thebearingedge nice! great to see that everything is going well

v1rtl avatar Apr 25 '21 16:04 v1rtl

@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?

ac5tin avatar May 06 '21 07:05 ac5tin

@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

v1rtl avatar May 27 '21 13:05 v1rtl

@talentlessguy Yeah, I have some PTO coming up in a few weeks 👍

thebearingedge avatar May 28 '21 22:05 thebearingedge

@thebearingedge hello, do you need help?

aldy505 avatar Jun 02 '21 08:06 aldy505

@aldy505 that would be fantastic! 👍

I probably won't have time to dedicate to the project until about two weeks.

thebearingedge avatar Jun 03 '21 04:06 thebearingedge

@thebearingedge I'll open an issue on your repo about which part will I be working.

aldy505 avatar Jun 04 '21 02:06 aldy505

Hi guys, is the project on still ? I'd like to contribute

jeanhdev avatar Aug 15 '21 19:08 jeanhdev

@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

v1rtl avatar Aug 15 '21 19:08 v1rtl

@talentlessguy can I give a shot at this? Any specifications not present in this thread that I need to know before I start?

rezendevictor avatar Mar 13 '24 22:03 rezendevictor

@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

v1rtl avatar Mar 15 '24 09:03 v1rtl