There are plenty of examples in the actix/examples repository. This basic one should contain lots of the actual code you'll need. It doesn't have the file structure you mentioned, but if you're familiar with the module system and how to split modules into files modifying it to use that should be easy.