10000 GitHub - flrdv/urlshortener: Basic project every backender must do
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

flrdv/urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlShortener API

This is pretty simple API for url shortening. Written for portfolio, so using Clean Architecture here

Endpoints

  • POST /shorten:
    • Request body must be a valid url I can redirect to
    • Responds with newly generated id
  • GET /<id>:
    • Redirects you to url was specified in body of request to the /shorten endpoint

How to run

First, install and setup PostgreSQL

Then, run this command:

git clone https://github.com/fakefloordiv/urlshortener

After that, go to deployment/ and fill example.env, but with your own values

After done, just run

source your-file.env && go run src/cmd/urlshortener

About

Basic project every backender must do

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0