Dcard-URL-Shortener

module
v0.0.0-...-6bc37de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: MIT

README

Dcard-URL-Shortener

workflow checking

About The Project

This is Dcard's homework about implementing url shortener. This repository includes all the modules with the mono-repo architecture. Also, if you want to know more about this homework detail, you can refer to this spec.

(back to top)

Built With

The following are the packages used in this Golang project.

(back to top)

Getting Started

Before starting this program, please make sure that your docker is running.

Unit Testing

This project has unit tests with ginkgo framework for DAO and toolkit in pkg directory.

  1. Test whole project
    make dc.test
    
  2. Test pkg
    make dc.pkg.test
    
Style Check

This project uses golangci to check the style.

  1. Check whole project's style
    make dc.lint
    
  2. Check only modules' style
    make dc.internal.lint
    
  3. Check only pkg's style
    make dc.pkg.lint
    
Build Image
  1. Build shorten url api image
    make dc.image
    

(back to top)

Future Work

  1. This time, I only use google-uuid to simply generate shorten url. The next goal is to adopt a suitable shorten url algorithm.
  2. This implementation is kind of like image-to-url converter. So I want to extend this project to contain image-to-url converter in the future.

(back to top)

Directories

Path Synopsis
internal
dao
mock/daomock
Package daomock is a generated GoMock package.
Package daomock is a generated GoMock package.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL