Skip to content

Brief makes your url's as brief as the word: "brief"

License

Notifications You must be signed in to change notification settings

emmrys-jay/brief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jonathan Emmanuel
Jul 18, 2023
5ccf948 Â· Jul 18, 2023

History

33 Commits
Jul 16, 2023
Jul 3, 2023
Jul 16, 2023
Jul 16, 2023
Jul 18, 2023
Jun 13, 2023
Jun 28, 2023
Jun 28, 2023
Jun 28, 2023
Jun 28, 2023
Jun 12, 2023
Jul 17, 2023
Jun 28, 2023
Jun 28, 2023
Jun 28, 2023
Jun 30, 2023
Jun 13, 2023
Jul 16, 2023
Jul 16, 2023
Jul 16, 2023

Repository files navigation

brief

Brief makes your url's as brief as the word: brief (with a few added chars 🤪)

Brief uses MD5 hashing algorithm, with base64 URL encoding and a unique counter to achieve unique short urls for each long url. Brief also allows you to specify a specific url of your choice.

Features

  • User Authentication
  • Hashing Algorithm (MD5 + base64 URL Encoding + Random counter)
  • API Testing
  • Caching with Redis
  • Analytics
  • Swagger Documentation
  • Postman Documentation
  • Continuos Integration/Delivery (CI/CD)

Requires

go 1.17+ postgresql redis docker (optional)

Setup

  • Clone project using:
    git clone https://github.com/emmrys-jay/brief.git
  • Create your env file named mine.env, and write your env variables according to sample.env in the projects root directory

  • Note: If you have docker installed, you can use postgres from docker by running the following in a separate bash shell.

    docker-compose -f postgres.docker-compose.yml up
  • Run unit tests using:
    go test -tags=unit ./...
  • Ensure your database is up and configured, then run unit tests using:
    go test -tags=integration ./...
  • Start server using:
    go run main.go

Documentation

About

Brief makes your url's as brief as the word: "brief"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published