A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
1# SimpleLink 2A very performant and light (6mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres. 3 4![MainView](readme_img/mainview.jpg) 5 6![StatsView](readme_img/statview.jpg) 7 8## Build 9 10### From Source 11First configure .env.example and save it to .env 12 13The project will not run withot DATABASE_URL set. (TODO add sqlite support) 14 15```bash 16#set api-domain to where you will be deploying the link shortener, eg: link.example.com, default is localhost:8080 17git clone https://github.com/waveringana/simplelink && cd simplelink 18./build.sh api-domain=localhost:8080 19cargo run 20``` 21 22Alternatively if you want a binary form 23```bash 24./build.sh --binary 25``` 26then check /target/release for the binary named `SimpleGit` 27 28### From Docker 29```bash 30docker build --build-arg API_URL=http://localhost:8080 -t simplelink . 31docker run simplelink -p 8080:8080 \ 32 -e JWT_SECRET=change-me-in-production \ 33 -e DATABASE_URL=postgres://user:password@host:port/database \ 34 simplelink 35``` 36 37### From Docker Compose 38Adjust the included docker-compose.yml to your liking, it includes a postgres config as well.