Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jboirazian/shorturlcpp
A tinyurl dashboard that uses C++ and HTMX
https://github.com/jboirazian/shorturlcpp
Last synced: about 2 months ago
JSON representation
A tinyurl dashboard that uses C++ and HTMX
- Host: GitHub
- URL: https://github.com/jboirazian/shorturlcpp
- Owner: jboirazian
- Created: 2023-12-24T19:47:20.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-25T15:26:08.000Z (12 months ago)
- Last Synced: 2023-12-25T21:36:11.745Z (12 months ago)
- Language: C++
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://tinyurl.com/tools/apideveloper))## Building
To build the ShortURLCPP executable, run the following command:
```bash
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:
```bash
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:
```bash
./shorturlcpp
```After that go to http://localhost:9090