sparckles / Robyn

Robyn is a Super Fast Async Python Web Framework with a Rust runtime.
https://robyn.tech/
BSD 2-Clause "Simplified" License
4.29k stars 221 forks source link

[Feature Request] A project scafold or boilerplate of a Robyn API #360

Closed juanfrilla closed 1 month ago

juanfrilla commented 1 year ago

Hello, do anybody have a Robyn boilerplate to look what an API files structure looks like?

Anything like this in FastAPI: https://github.com/tiangolo/full-stack-fastapi-postgresql If not, i kindly suggest you to implement one.

sansyrox commented 1 year ago

Hey @juanfrilla , that's a great idea. Unfortunately, there is nothing like that at the moment. We will be happy to create one 😄 Is there something specific that you would like to see? (frontend framework, database provider, or something else)?

juanfrilla commented 1 year ago

@sansyrox Thanks. It could be good for me with the API folder structures, some .py files inside of it and some code inside those .py files. For example a simple CRUD API. e.g database connection, some endpoints, business logic, some models, serialization...

About technologies: Front-end: Only if you want, It's not necessary for me, as the framework itself (backend) is more important. Referred to databases, I don't care which one you use because whatever you put, is changing one for another. Referred to SysAdmin/Devops: It will be nice that the boilerplate will be ready for production, with some dockerfiles or docker-composes inside of it. If you want to add some CI/CD its valid for me as well, for example with Github Actions. Additionally, it's up to you to add some kind of Kubernetes with microservices (this could be complicating it a little bit) .

PD: I discovered your framework today and it looks really promising and fast. It's curious that is a Python framework written in Rust. Keep going 😄🙏

sansyrox commented 1 year ago

Thank you for the detailed examples @juanfrilla 😄

I discover your framework today and it looks really promising and fast. It's curious that is a Python framework written in Rust. Keep going 😄🙏

Thank you! 😄 I am glad you liked it ✨

sansyrox commented 1 year ago

Hey @Noborita9 👋

Would you be interested in something like this?

Noborita9 commented 1 year ago

Yeah, I am willling to take this. Should I create a repo on my own or where to let it there

sansyrox commented 1 year ago

Oh, perfect. I can create a Repo and add you as a collaborator there. Would that work for you?

sansyrox commented 1 year ago

@Noborita9 , I robyn will be a part of a larger organization and I would want the template to live there. So, it will be easier that way imo.

Noborita9 commented 1 year ago

Yeah, seem great just send me the invite and I'll will be working there.

sansyrox commented 1 year ago

@Noborita9 , I have added you to the repo. Can you check if you have access?

Noborita9 commented 1 year ago

@sansyrox I just made a push, so everything is fine for me to work on it! This week I've been a bit busy, so I expect next week to be pushing some content there

juanfrilla commented 1 year ago

It would be nice if you add the repo here guys 😉

Noborita9 commented 1 year ago

Hi @juanfrilla, here's the repo, I stopped making it because I was interested at having routers, so when they are added (They are on their way)I will make a first version of it

zweix123 commented 2 months ago

Can this question be extended to add a command-line sub command to robyn to give it scaffold like functionality?

sansyrox commented 1 month ago

This now present in the robyn cli. Just use robyn --create