Deview (Dioxus + REview) is Petabi's internal tool designed to streamline the development and testing process for REview, our central management server that collects and analyzes events. Deview creates a modern, efficient web interface using Dioxus with server-side rendering (SSR) to interact with REview.
- Improve Internal Testing: Provide our team with a dedicated tool to test REview's functionality without needing to set up a full REview instance.
- Showcase Modern Web Technologies: Demonstrate the advantages of using Dioxus and SSR over the current client-side rendering approach in the official REview UI.
- Enhance Performance: Utilize Dioxus and SSR to significantly reduce initial load times and improve overall application responsiveness.
- Support Cloud Deployments: Prepare REview for cloud-based deployments by addressing potential performance bottlenecks and improving scalability.
This section will guide you through setting up Deview for development. Whether you're experienced with web application development in Rust or new to the field, these instructions will help you get started.
Before you begin, ensure you have the following tools installed:
-
Dioxus CLI: The Dioxus CLI tool is necessary for building and running Deview. Install it using Cargo:
cargo install dioxus-cli
-
npm: If you don't already have npm installed, you can install it via Homebrew:
brew install npm
-
Tailwind CLI: Tailwind CSS is used for styling in Deview. Install the Tailwind CLI with the following command:
brew install tailwindcss
With the prerequisites installed, follow these steps to build and run Deview:
-
Start the Tailwind CLI build process: This command will watch for changes in your CSS and rebuild the Tailwind output automatically.
npx tailwindcss -i ./input.css -o ./assets/tailwind.css --watch
-
Launch Deview: In a separate terminal window, use the Dioxus CLI to start the Deview development server.
dx serve --platform fullstack
-
Access Deview in your browser: Open your web browser and navigate to http://127.0.0.1:8080 to see Deview in action.
-
Dioxus CLI Not Found: If you encounter an error about the Dioxus CLI not being found, ensure it was installed correctly using Cargo.
-
Port Already in Use: If port 8080 is in use, you can specify a different port by adding the
--port
option when launching Deview:dx serve --platform fullstack --port 8081
Copyright 2024 Petabi, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this crate except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Deview by you, as defined in the Apache-2.0 license, shall be licensed under the same license, without any additional terms or conditions.