Categorygithub.com/gitynity/go-web-projects
module
0.0.0-20240310185049-8b41f8abd88d
Repository: https://github.com/gitynity/go-web-projects.git
Documentation: pkg.go.dev

# README

url-shortner

Screenshot 2023-07-16 at 5 11 40 AM

Dependencies:

  • make sure you have mysql server and redis server installed on your machine.
  • To install mysql server on mac: brew install mysql
  • To install redis server on mac: brew install redis

Running the server:

  • git clone https://github.com/gitynity/go-web-Projects.git
  • cd go-web-Projects/URLShortner && make build
  • ./bin/url-shortner

Requests:

  • POST: curl -X POST 'localhost:8080/add-url?long_url=https://go.dev/play/'
  • GET: curl -X GET 'localhost:8080/get-long-url?short_code=rJQgckya'
  • GET: curl -X GET 'localhost:8080/get-short-url?long_url=https://goplay.tools/'
  • DELETE: curl -X DELETE 'localhost:8080/remove-url?long_url=https://go.dev/play/'

# Packages

No description provided by the author
No description provided by the author
No description provided by the author