Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yefim/tshort
- Owner: yefim
- Created: 2012-12-15T23:09:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-14T08:14:03.000Z (almost 12 years ago)
- Last Synced: 2024-04-22T21:16:28.691Z (7 months ago)
- Topics: c-plus-plus, treefrog, web-app
- Language: C++
- Size: 1.21 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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