Getting Started

Installation

Create a repository with the template

  • Use the Use this template button and Create a new repository Cloudflare SignUp
  • Select private repository type and click Create a repository
    • In this picture, we have chosen my-tiny.link to reflect the chosen domain name; pick a name that makes senses to you Cloudflare SignUp
  • This part is now completed Cloudflare SignUp

Create your Cloudflare account

Purchase your internet domain

  • Login to Cloudflare and click on register a new domain Cloudflare SignUp
  • Type your desired domain name, click search and then purchase it Cloudflare SignUp
  • Fill the registrant information and proceed with payment Cloudflare SignUp
  • Don’t forget to Enable auto renew Cloudflare SignUp

Create the page site

  1. Click on Add pages Site Cloudflare SignUp
  2. Connect to the GitHub repository,

Cloudflare SignUp

To be reviewed

* Configure your deployment and build setup:
  * Framework preset: (leave empty)
  * Build command: `cat static.lnk dynamic.lnk > build/_redirects`
  * Build output directory: `/build`
* The build will fail as you still need to generate `static.lnk`, `dynamic.lnk`, and `build/_headers` later in the process
  1. Setup a custom domain for your page project

Local config

  1. Define your configuration in the vanityURLs.conf with your preferred text editor or via make config if vi is your cup of tea
    • SCRIPT_DIR: the path to your local scripts folder included in your path
    • REPO_DIR: the path to your local copy of vanityURLs
    • MY_DOMAIN: your tiny internet domain served by Cloudflare
    • MY_PAGE: your Cloudflare’s specific page URL
  2. Build your initial setup with make setup
  3. Update the static and dynamic redirection lists with your preferred text editor and the lnk bash script
  4. Update the main branch of your local git repository and push to GitHub
  5. Cloudflare will detect the change and initiate a deployment, please give ~15 seconds for your links to become valid
  6. Open the defined fully qualified domain name for your tiny internet domain name in your web browser, and you should be redirected to https://BHDicaire.com based on the initial configuration
  7. Fine tune the static and dynamic redirection lists with your preferred text editor and the lnk bash script
  8. Add and commit the change to the github repository