Actix-Web for web development

I want a complete example of actix-web with modular structure like:

1). all routes in a single file,
2). a file to create the httpserver and initiate all the routes,
3). finally a main.rs to intitate the httpserver.

Your help will be highly appreciable.

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.