Module
Build A Simple File Explorer in Rust
In this tutorial series, you will write a file explorer in Rust. A file explorer is a graphical user interface (GUI) tool that allows users to browse, access, organize, and manage files and folders on a computer or other storage device. It displays a hierarchical view of the file system, making it easier to locate and interact with data.
In the first part of the series, you will prepare the initial structure of the project, write a software architecture documentation and a README file that describes the project, and understand the scope of the project.
In the second part of the series, you will continue developing and refactoring the project, add more documentation, and write test cases for basic functionalities. You will continually commit and push new changes using Git as you continue to grow the project.
In the third part of the series, you will resume and write the JSON API that calls functions from the fs_wrappers module. You will convert your project into a cargo workspace and create a new subproject called "serve". This subproject compiles into a Rust executable that runs the JSON API server.
In the fourth part of the series, you will fix some CORS issues and add new dependencies, prepare a Node project for the frontend GUI and start experimenting with one of the API endpoints.
✍️ As this series is in active development, the description above will be updated to accurately match the progress of this Learn module.
Helpful prior knowledge
- Recommended to have finished Rust Basics.
- A working Rust installation. For instructions, head to https://rustup.rs/ and follow the platform-specific instructions.
- Recommended to know Git and GitHub. For a tutorial, head to Version Control Basics with Git and GitHub. Git must be installed and configured before doing this tutorial.
Learning Outcomes
You will be able to:
- Write your own file explorer API.
- Write documentation to explain the project's scopes and goals.
- Write tests that ensure that the library is working.
- Build custom frontend clients for the simple file explorer library.
Please log in to view this page, and provide additional information required (if any) to unlock the full experience on Learn.