Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create RealWorld application #147

Open
talentlessguy opened this issue Oct 9, 2020 · 17 comments
Open

Create RealWorld application #147

talentlessguy opened this issue Oct 9, 2020 · 17 comments
Labels
examples Affects "examples" folder good first issue Good for newcomers hacktoberfest hard

Comments

@talentlessguy
Copy link
Member

talentlessguy commented Oct 9, 2020

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 talentlessguy added good first issue Good for newcomers examples Affects "examples" folder hacktoberfest hard labels Oct 9, 2020
@saranshabd saranshabd removed their assignment Oct 13, 2020
@thebearingedge
Copy link

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

@talentlessguy
Copy link
Member Author

talentlessguy commented Mar 29, 2021

@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

@thebearingedge
Copy link

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?

@talentlessguy
Copy link
Member Author

@thebearingedge oops my bad

yeah eta is not needed here

@talentlessguy
Copy link
Member Author

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

@thebearingedge
Copy link

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! 👍

@talentlessguy
Copy link
Member Author

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

@ac5tin
Copy link

ac5tin commented May 6, 2021

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

@talentlessguy
Copy link
Member Author

@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

@thebearingedge
Copy link

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

@aldy505
Copy link
Member

aldy505 commented Jun 2, 2021

@thebearingedge hello, do you need help?

@thebearingedge
Copy link

@aldy505 that would be fantastic! 👍

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

@aldy505
Copy link
Member

aldy505 commented Jun 4, 2021

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

@jeanhdev
Copy link

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

@talentlessguy
Copy link
Member Author

@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

@rezendevictor
Copy link

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

@talentlessguy
Copy link
Member Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Affects "examples" folder good first issue Good for newcomers hacktoberfest hard
Projects
None yet
Development

No branches or pull requests

7 participants