This is a Rust project featuring an HTTP API and WebSocket server using Tokio, Warp, and other popular Rust libraries.
-
Clone the repository:
git clone https://github.com/owenkellogg/platform-explorer.git
-
Navigate to the project directory:
cd platform-explorer/packages/server
-
Install the dependencies:
cargo build
This project uses environment variables for configuration. Create a .env
file in the root directory of the project and populate it with the necessary variables:
- HTTP_PORT: Port on which the HTTP server will run (e.g., 3030).
- WS_PORT: Port on which the WebSocket server will run (e.g., 8080).
Example .env
file:
HTTP_PORT=3030
WS_PORT=8080
To run the application:
cargo run
To run tests:
cargo test
MIT License. See LICENSE
for more details.