https://github.com/nkh123/smol_url
A service like tinyURL in Golang, only backend
https://github.com/nkh123/smol_url
curl golang hash task tinyurl
Last synced: 1 day ago
JSON representation
A service like tinyURL in Golang, only backend
- Host: GitHub
- URL: https://github.com/nkh123/smol_url
- Owner: NKH123
- Created: 2019-11-28T17:51:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T09:18:52.000Z (about 6 years ago)
- Last Synced: 2023-03-07T05:32:11.365Z (almost 3 years ago)
- Topics: curl, golang, hash, task, tinyurl
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL_Shortener_Go
A service like tinyURL in Golang
## Steps to run
* go run main.go
* using curl for POST request. Replace long_url with the long url.
```curl -d '{"orig_url":"long_url"}' -H "Content-Type: application/json" -X POST http://localhost:8047/CREATE```
* using curl for GET request. Replace short_url with the short url.
```curl http://localhost:8047/url/short_url```