Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yefim/tshort

A link shortener written in C++ with the Treefrog framework
https://github.com/yefim/tshort

c-plus-plus treefrog web-app

Last synced: about 9 hours ago
JSON representation

A link shortener written in C++ with the Treefrog framework

Awesome Lists containing this project

README

        

# TShort

TShort is a link shortener written in the C++ TreeFrog Framework. Users can create, edit, and remove keyword-URLs pairs, then access the long URLs via the keywords. Additionally, users can view a list of all the URLs that have been created already and see how many times a URL has been visited.

# Getting started

Install [treefrog](http://www.treefrogframework.org/documents/install).

Create a sqlite3 database with:

```
$ mkdir db
$ sqlite3 db/shortenerdb < shortenerdb.sql
```

Run qmake to compile the app.

- For Linux, run `qmake -spec linux-g++ -r "CONFIG+=release"`.
- For Mac, run `qmake -spec macx-g++ -r "CONFIG+=release"`.
- For Windows, run `qmake -spec win32-g++ -r "CONFIG+=release"`.

Run `make`

Run the server with `treefrog -e dev`.

Go to [localhost:8800/](http://localhost:8800) to view.

# Architecture

TShort is primarily built on the [treefrog](http://www.treefrogframework.org) framework, a C++ framework very similar to Rails. For the style, we used [Twitter Bootstrap](http://twitter.github.com/bootstrap/). For a database, we used sqlite3 in development and MySQL in production.

# Contributors

- Geoffrey Vedernikoff
- Kai Ninomiya
- Ceasar Bautista