Skip to content

Repository files navigation

f logo

⚡ Powerful Analytics

🎛️ User-friendly modern browser interface

💾 > 20 MB

🌐 Works even on microhosting services!

🏗️ Build with sqlite3 and nodeJS

🏃 Developed with speed in mind

Installing

Default installing

  1. Clone the git repo:
git clone https://github.com/MoPaMo/f.git
  1. Enter the new directory:
cd f
  1. Install the node modules:
npm install
  1. Add a .env and choose a password
echo "pwd=[your password]" > .env
  1. Create the database file in ./db/
sqlite3 db/db.db

Copy and paste these SQL commands

For the lazy: You can also just copy example.db into ./db/ and rename it to db.db

  1. Run it!
npm start # or node index.js

Details

DB structure

SQL Comands:
CREATETABLElinks (id INTEGERPRIMARY KEY AUTOINCREMENT NOT NULL , token TEXTNOT NULL UNIQUE, url TEXTNOT NULL, created INTEGER);
CREATETABLErefs (id INTEGERPRIMARY KEY AUTOINCREMENT NOT NULL, link_id INTEGERNOT NULL, lang TEXT, browser_name TEXT, os_name TEXT, versionName TEXT, platType TEXT, referrer TEXT, full_ua TEXT, timeHit INTEGER);
Tables:
NameTypeSpecial
Item OneItem TwoItem Three

About

a simple, self hosted URL Shortener with powerful analytics, running on NodeJS and sqlite3

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages