urlshorter is a high-performance and fully functional short url service in rust, you can use it directly in the production environment.
Uses Auxm, SeaOrm and PostgreSQL, the system architecture references RUSTfulapi.
The Redis is optional, you can uncomment the code in the program if you want to use it.
./run
# open swagger panel
xdg-open http://127.0.0.1:8080/swagger-ui/
# manually testing your API routes with curl commands
curl -X GET http://127.0.0.1:8080/api/v1/server/health_check
cd ./docker/dev/ && ./up.sh
settings
├── base.toml # default config file
├── dev.toml # development config file
├── prod.toml # production config file
└── test.toml # test config file
Before running the application, export this variable:
export APP_PROFILE=prod # Switch to production profile
cargo run --bin migration -- up -u $DATABASE_URL
Licensed under either of
Contributors are welcome! please fork and send pull requests, If you find a bug or have any ideas on how to improve this project please submit an issue.
See CONTRIBUTING.md.
$ claude mcp add urlshorter \
-- python -m otcore.mcp_server <graph>