Building out Development Setup
Before we can start writing code that is executed in the browser to display our to-do items, we must setup our development environment. For our environment to support a React application, we need the following file layout:
─── ingress
└── frontend
├── esbuild.js
├── ts.config.json
├── package.json
├── public
│ └── index.html
└── src
└── index.tsx
Here, we can see that we have created an ingress
directory. The ingres
directory will house all the frontend code and will also have the main Rust server that will serve the frontend application and all backend endpoints. All our frontend code will be in the ingress/frontend
directory, and all the assets that we will be serving after a frontend build will...