/jc.tn

This is the source code for my jc.tn domain, solely based on Firebase hosting.

Primary LanguageHTMLThe UnlicenseUnlicense

jc.tn

This is my personal url shortener based solely on firebase redirections rules

Dev mode

Requirements

Clone the repository

git clone git@github.com:kidager/jc.tn.git
cd jc.tn

Edit config file

# To edit redirections you'll need to edit `firebase.enc` with `sops`
sops firebase.enc

You will be editing hosting.redirects array.:

{
    "hosting": {
        "redirects": [
            // ...
            {
                "source": "/",
                "destination": "https://jacem.chaieb.me",
                "type": 301
            },
            // ...
        ]
    }
}

Deploy

# To deploy you'll need to push the code to the remote repository
# - <master> => production
# - <develop> => beta
# - any open PR => temp-deployment

git push

or if you want to deploy from your local env, you will need to install firebase and then run the following commands

# Decrypt the config file
sops --decrypt firebase.enc > firebase.json

# You may need to login your google account before deploy
make firebase-login

# Deploy to prod
make deploy-prod
# or to beta
make deploy-beta

License

UNLICENSE