Launching a basic web server
In this section we are merely going to get an Actix server running before connecting our server to our core code.
Why Actix Web?
This is now the third edition of the book. There have been several people email me asking about a range of different web frameworks. The truth is the choice of framework is close to trivial. If you structure your code well, you should be able to switch these frameworks with minimal effort. Throughout this book, we will structure our code so we can multiple different web frameworks at the same time.
For our server, we are going to create a networking layer for our to-do nanoservice and put a cargo project for our actix server in that networking layer directory. With our server module, our file layout for our nanoservice should take the following form:
├── Cargo.toml
└── to_do
├── core
│ ├── . . .
├── dal...