Coder Social home page Coder Social logo

mehmetumit / dexus Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 54 KB

Dynamic extensible URL shortener

License: GNU General Public License v3.0

Dockerfile 1.32% Makefile 2.00% Go 95.39% Shell 1.28%
caching ci-cd dynamic extensible go makefile ports-and-adapters-pattern shell-script url-shortener go-http-middleware

dexus's Introduction

dexus

Stars License


About

Dexus is a URL shortener that provides you with the ability to extend it dynamically according to your needs. You can utilize existing adapters or implement your own adapters based on ports. Afterwards, you only need to inject these adapters in cmd/main.go. Contributions of any new adapters are welcome.

Usage

Using binary release

Precompiled binaries are available on the relases page.

Local Usage

# Clone the repository
git clone https://github.com/mehmetumit/dexus.git
# Change directory
cd dexus
# Build and run with make
make exec
# Or just build as "./build/dexus"
make build

Using Docker

# Clone the repository
git clone https://github.com/mehmetumit/dexus.git
# Change directory
cd dexus
# Build image with make
make docker-build
# Run image with make
make docker-run
# Or manually
docker run -p 8080:8080 dexus:latest

Development

# Live reload using 'entr'
make live-reload
# Run tests and get coverage
make test
# Run tests and get coverage with html output
make test-coverage-html

Configuration

Env Vars Default Values
DEBUG_LEVEL true
HOST all interfaces
PORT 8080
READ_TIMEOUT_MS 1000 ms
WRITE_TIMEOUT_MS 1000 ms
CACHE_TTL_SEC 60 s
YAML_REDIRECT_PATH configs/redirection.yaml

Contributing

Greatly appreciate contributions from the community. Your input, whether it's through code, documentation, bug reports, or suggestions, helps improve this project and make it even better.

License

This project is licensed under the GPLv3 License.

dexus's People

Contributors

mehmetumit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.