-
Notifications
You must be signed in to change notification settings - Fork 0
Loco app documentation
Matthjass13 edited this page Mar 1, 2026
·
2 revisions
The Loco folder contains a web app created with the loco framework.
It is a CRUD app to manage differents posts and comments.
It uses SQLLite for the data management.
- Go to the locoapp folder
- Install loco on your side with :
- cargo install loco
- cargo install sea-orm-cli
- Launch the command cargo loco start
- You can access the app with localhost:5150/api/articles
- To use curl command, install git bash and run the commands in there
- Here are the curl command you can use :
curl -X POST -H "Content-Type: application/json" -d '{ "title": "anotherTitle", "content": "anotherContent" }' localhost:5150/api/articles
curl -X PUT -H "Content-Type: application/json" -d '{ "title": "Updated Title", "content": "Updated content" }' http://localhost:5150/api/articles/{itemId}
curl -X DELETE http://localhost:5150/api/articles/{itemId}
Not much