A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
1# SimpleLink
2
3A very performant and light (6mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres.
4
5
6
7
8
9## Build
10
11### From Source
12
13First configure .env.example and save it to .env
14
15If DATABASE_URL is set, it will connect to a Postgres DB. If blank, it will use an sqlite db in /data
16
17```bash
18git clone https://github.com/waveringana/simplelink && cd simplelink
19./build.sh
20cargo run
21```
22
23On an empty database, an admin-setup-token.txt is created as well as pasted into the terminal output. This is needed to make the admin account.
24
25Alternatively if you want a binary form
26
27```bash
28./build.sh --binary
29```
30
31then check /target/release for the binary named `SimpleGit`
32
33### From Docker
34
35```bash
36docker build -t simplelink .
37docker run -p 8080:8080 \
38 -e JWT_SECRET=change-me-in-production \
39 -v simplelink_data:/data \
40 simplelink
41```
42
43### From Docker Compose
44
45Adjust the included docker-compose.yml to your liking; it includes a postgres config as well.