Skip to content

alireza-s13/url-shortener

 
 

Repository files navigation

url-shortener

Deploy the URL Shortener service quickly.

Requirements

  • docker install (version >= 17.03)
  • Permission to run docker commands
  • A docker swarm created and this is the only node, or the storage may encounter failure
  • One overlay network named swarm-net
  • The directory /data exists and able to read/write

If you haven't meet the requirements, refer to this script install_requirements.sh to setup that.

Steps to deploy

Clone this repo

git clone https://github.com/QuickDeploy/url-shortener.git

Start the services

bash url-shortener/install.sh

Setup the database

visit http://127.0.0.1/install.php to init the system, and you will see four Success

Run on your own servers

Part 1

First of all, login to QuickAuth and register for an account.

After login, visit Sites > Add , and add your server ip / domain (without http://, / or sub dir)

Click View, you can see the ClientID and ClientSecret, they will be used in the Part 2

Part 2

Modify the config files /data/us/web/config/config.js and /data/us/web/config/config.inc.php

Properties to be updated are BASE_URL, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET

That's all!

Advanced users

Feel free to post issues.

About

Deploy the URL Shortener service quickly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 55.4%
  • PHP 32.1%
  • Dockerfile 7.9%
  • JavaScript 4.6%