Building a REST API in Rust (Part 2)

in #utopian-io8 years ago (edited)

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

Sort:  

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

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Coin Marketplace

STEEM 0.05
TRX 0.33
JST 0.080
BTC 63398.51
ETH 1702.04
USDT 1.00
SBD 0.41