Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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