Adding Rocket
Adding a backend framework
Base requirements for each framework:
- [ ] Add new framework option to CLI, update
BackendFrameworkenum - [ ]
main.rswhich starts the server increate-rust-app_cli/template/src/- [ ] sets up logging
- [ ] adds the database pool and the mailer to app's data (every framework has a way of passing data onto all handlers)
- [ ] sets up
/api/todosendpoints (seetodo.rsbelow) - [ ] (only in production:
#[cfg(not(debug_assertions))]) serves files from./frontend/buildwith theindex.htmlas the default - [ ] listens on port 8080
- [ ] returns 404 for all unhandled routes
- [ ]
todo.rswhich serves the CRUD endpoints for the example 'todo' service increate-rust-app_cli/template/src/services- [ ]
GET /: returns a JSON list of all TODO items - [ ]
GET /id: return a single JSON TODO item - [ ]
POST /: creates and returns a single JSON TODO item - [ ]
PUT /:id: updates and returns a single JSON TODO item - [ ]
DELETE /:id: deletes a single item, returns 200 status code
- [ ]
Optional requirements:
(we can get to these later)
- Auth plugin suppot
- [ ] Implement all
/api/authroutes - [ ] Add an extractor/guard for auth
- [ ] Implement all
- Storage plugin support
- [ ] Add an example service which shows file uploads (
files.rs)
- [ ] Add an example service which shows file uploads (
I'm happy to take this on if no one else has
hey @Isaac-Leonard, hope everything is well :)
Sounds awesome, please do, no one else is actively working on this at the moment.
I'll be happy to help as you go through this. The project has changed a lot since this issue was created, but we can still use the checklist above as a starting point.
Also, sorry for the late reply -- I was in the middle of a move!
I’d also be willing to give advice and suchOn Dec 10, 2023, at 9:31 AM, Haris @.***> wrote: hey @Isaac-Leonard, hope everything is well :) Sounds awesome, please do, no one else is actively working on this at the moment. I'll be happy to help as you go through this. The project has changed a lot since this issue was created, but we can still use the checklist above as a starting point. Also, sorry for the late reply -- I was in the middle of a move!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>