Simple link shortener with MongoDB persist and Base62 link shorting algorithm.
- GET http://host:port/cut?url=testurl - Shorten link and get short version
- GET http://host:port/shorturl - Proceed to full version of short link
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to install Golang to run this project.
✗ go version
go version go1.12.1 darwin/amd64Also you need MongoDB instance. You should add your MongoDB installation url and database name to config.toml
- Clone the project and open in your favourite IDE.
- Install all needed dependencies via
go get -d ./...or via IDE tools.
Run main.go
Vladislav Sidlyarevich - Github profile
This project is licensed under the MIT License - see the LICENSE.md file for details