Building a REST API in Rust (Part 2)
What Will I Learn?
- You will learn how to decouple your database from your request/response cycle in a Rust web application
- You will learn how to setup a basic Rust rocket application
- You will learn how to dynamically serve static HTML and other files from a basic Rust rocket app
Requirements
- A moderate understanding of the Rust programming language
- A basic understanding of micro service architecture.
- A basic understanding of the HTTP protocol
Difficulty
- Intermediate
Description
In this tutorial, we continue building our Rust API project. We first add the rest of our dependencies to our application and then configure our R2D2 database connection pool. We then build out parts of our application by adding functionality that allows us to serve static files in both a static and dynamic way. We look at some of the various features of the Rust nightly channel and the Rocket Framework which includes custom attributes, inline functions and declarative macros. We finish up by looking at how we can tie all of this together into a coherent server.
The source code for this project can be found here
Video Tutorial
Curriculum
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
Hey @tensor you've got a nice video. i will surly go back to check the first part of this series.
You can contact us on Discord.
[utopian-moderator]
Thank you @Rufans. I am glad you like it. Thank you taking the time to read/watch my content.
Hey @tensor I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x