Skip to content

zhenya-paitash/api-urlshortener-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Simple URL shortener written in Go and using the Chi library to handle HTTP requests. It allows you to create short aliases for long URLs and redirect from a short alias to the original URL.

Static Badge Static Badge

About

Name: URL Shortener
Year: 2023

Tech stack

Static Badge Static Badge Static Badge

Features

Install

Usage

Build and run the project locally

go build -o bin/url-shortener cmd/url-shortener/* && bin/url-shortener -config=config/local.yaml

Run all tests

go test ./... -v

Workflow

  • Initialization
  • Configuration setup
  • Logger
  • Storage
  • Storage methods
  • Create and setup router
  • Router middlewares
  • Logger custom
  • Save handler
  • Http server
  • Tests: save handler, random lib
  • Redirect handler
  • Delete handler
  • Auth
  • Redirect test
  • Functional tests
  • Deployment
  • Github Actions

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Author: Zhenya Paitash

About

🔥 REST API Service for shortening links

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages