A tinyurl dashboard that uses C++ and HTMX
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)
To build the ShortURLCPP executable, run the following command:
make
This will compile the program using g++ with the necessary flags.
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.
Once the program is built and the token is set, run the executable:
./shorturlcpp
After that go to http://localhost:9090