We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BackendFramework
main.rs
create-rust-app_cli/template/src/
/api/todos
todo.rs
#[cfg(not(debug_assertions))]
./frontend/build
index.html
create-rust-app_cli/template/src/services
GET /
GET /id
POST /
PUT /:id
DELETE /:id
(we can get to these later)
/api/auth
files.rs
The text was updated successfully, but these errors were encountered:
Outline for #20
Sorry, something went wrong.
No branches or pull requests
Adding a backend framework
Base requirements for each framework:
BackendFramework
enummain.rs
which starts the server increate-rust-app_cli/template/src/
/api/todos
endpoints (seetodo.rs
below)#[cfg(not(debug_assertions))]
) serves files from./frontend/build
with theindex.html
as the defaulttodo.rs
which serves the CRUD endpoints for the example 'todo' service increate-rust-app_cli/template/src/services
GET /
: returns a JSON list of all TODO itemsGET /id
: return a single JSON TODO itemPOST /
: creates and returns a single JSON TODO itemPUT /:id
: updates and returns a single JSON TODO itemDELETE /:id
: deletes a single item, returns 200 status codeOptional requirements:
(we can get to these later)
/api/auth
routesfiles.rs
)The text was updated successfully, but these errors were encountered: