Skip to content

jboirazian/shorturlcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shorturlcpp

A tinyurl dashboard that uses C++ and HTMX

Prerequisites

Before running the program, make sure you have the following:

  • g++ (GNU C++ compiler)
  • libpthread (POSIX threads library)
  • libjsoncpp (JSON library for C++)
  • libcurl (URL transfer library)
  • TinyURL API token (Get it from TinyURL Developer)

Building

To build the ShortURLCPP executable, run the following command:

make

This will compile the program using g++ with the necessary flags.

Set TinyURL API Token

Export your TinyURL API token as an environment variable:

export TINYURL_TOKEN=YOUR_TOKEN_HERE

Replace YOUR_TOKEN_HERE with your actual TinyURL API token.

Running

Once the program is built and the token is set, run the executable:

./shorturlcpp

After that go to http://localhost:9090

About

A tinyurl dashboard that uses C++ and HTMX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages