October 2019
Intermediate to advanced
444 pages
10h 37m
English
Let's set up a Rust binary project using cargo new api. Since we are going to serve stuff on local port 8081, make sure that the port is accessible as well. Inside the newly created project folder, we need an additional static/ folder, where you can put an interesting .jpg image to serve. Additionally, make sure that there is a program such as curl (https://curl.haxx.se/) available on your command line. Alternatively, Postman (https://www.getpostman.com/) is a tool that does the same thing with a graphical interface.
Finally, open the entire directory with VS Code.
Read now
Unlock full access