module
Version:
v0.0.0-...-ce4d8a1
Opens a new window with list of versions in this module.
Published: Oct 17, 2019
License: MIT
Opens a new window with license information.
README
¶
URLShortener
Simple url shortener as a serivce with go
You can see the demo here
How use this service?
For get the short form of your url you can send a HTTP post
request to hallows.ir/add:
Request
{
"long_url": "<Your URL>"
}
Response
{
"short_url": "<Shorted URL>"
}
Warning
This service has absoloutly no guarantee 😂🤣
Maybe we reset system sometimes 🤷♂️
Run on your server
- first clone this repository on your server.
git clone https://github.com/SamanFekri/URLShortener.git
- change the domain name in nginx and server.
- install docker
- install docker-compose
- go to the urlshortener directory and run this command:
docker-compose build
docker-compose up
Directories
¶
src
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.