Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Add sample Rocket app #4

Open
dteare opened this issue Mar 17, 2024 · 2 comments
Open

Add sample Rocket app #4

dteare opened this issue Mar 17, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@dteare
Copy link
Contributor

dteare commented Mar 17, 2024

It would be nice if we included a sample Rocket app. This would be a real-life app that has request handlers of various shapes and sizes to demonstrate each rocket-ts feature.

It should include a few Custom Request Guards to demonstrate support for #3.

@AvaterClasher
Copy link
Contributor

Should this be app be an actual app that can be deployed and used for its intended purpose or just looks like one ? If so can you recommend some handlers to implement or for what any topic to make it on. Should i also make this a cargo workspace for the rocket app ?

@dteare
Copy link
Contributor Author

dteare commented Mar 18, 2024

I don’t see any value in making the app so real that it can be deployed, and there’s no need to make it do anything actually useful. Why I thought a “real” 🚀 app would be helpful is it allows any Rocket developer to instantly understand how rocket-ts handles things. It’d also be great to ensure it compiles and that our syntax is correct. 🙂

I could see this sample app being perfect for writing test cases against. Ultimately it would be really cool if rocket-ts looked at your entire Rocket app and extracted the handlers and request guards and anything else we grow into. Treating this app as a “test fixture” would be pretty cool.

@dteare dteare added the good first issue Good for newcomers label Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants