Replies: 3 comments 2 replies
-
You can always try https://github.com/nedpals/vex as an alternative to vweb. |
Beta Was this translation helpful? Give feedback.
1 reply
-
My opinion is that it is very easy to build a web-server and framework from scratch using Soket without using existing vlib net modules. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@archandha I agree. We'll make it possible to use different handlers.
etc |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I recently worked on an large project centered around a Django Rest framework/Python based REST server. In this project we have ~90 REST endpoints, most of them CRUD for different data structures and some of them for result retrieval, configuration etc. As the project is configurable by deployment, one could add or remove some features (endpoints) by not embedding some libraries into the deployment code.
Obviously, we're not going to do a rewrite in V now but I was playing around with the idea in my spare time if it would be possible one time to implement something like that in V.
As I understand the status quo right now, you have to have the one App struct and derive all endpoints from that. This would need all endpoints to be in the same code module without an easy way skipping this - and no, I don't consider conditional compiling over many code files as easy way.
Having a struct like the App which gives the context for vweb is great, but attaching every end point function to this one struct limits the options for code organization, doesn't it? How would you approach this? In an class based language you could think of inheriting other classes with endpoints.
Don't get me wrong, I'm new to the V project, read most of the docs and played around with some code just for fun. I really like the charm of the clean and tight code and would love to see V progress into a state like Go already has
Cheers
Beta Was this translation helpful? Give feedback.
All reactions