A fast velociraptor, written in Rust, for url tracking and redirect.
- Postgres
- Docker (Optional)
- Rust and Cargo 1.43.*
- Run postgres instance with docker compose. (If you change connection parameters in docker-compose.yml file, you need to reflect the same changes in .env file). You can use a non-containered postgres instance for production.
docker-compose up -d
Configurations for db connection
PG.HOST=127.0.0.1
PG.PORT=5432
PG.DBNAME=velocireditracktor_db
- Execute db_ddl.sql script in the running postgres
- Run the application with:
cargo run
- Optionally, you can change host and port binding parameters in .env file.
SERVER.HOST=127.0.0.1
SERVER.PORT=8080
- Database connecion pool max size can be changed in .env file
PG.POOL.MAX_SIZE=30
- Data is stored in redirects table.
select * from redirects;
- Testing
- Store a more complete information about the request in jsob format.