A simple url shortener web application. Save and manage your long url.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
postgresql ^=14
rust ^=1.58
cargo-leptos
Additionally, if you are using a Linux-based system, you need to install libpq-dev for PostgreSQL support:
sudo apt update
sudo apt install libpq-dev
Install cargo-leptos:
cargo install cargo-leptos
Clone the repository and install dependencies:
git clone <repository-url>
cd rust-shortlink
First, setup your environment:
cp .env.example .env
# Edit .env with your database settings
For development with hot-reload:
cargo leptos watch
For production build:
cargo leptos build --release
The server will start at http://localhost:3000
by default.