ifvictr / oca

πŸ“ A straightforward URL shortener boasting a simple design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oca is a very simple URL shortener, with a user-first design, and simple to deploy.

Deploy

Deploy

Features

  • Analytics for all shortened URLs (planned)
  • User accounts for managing URLs (planned)
  • Custom aliases for short URLs

Requirements

  • Node.js
  • MySQL database, or any variant
  • All required dependencies in the package.json file

Environment variables

This application will require you to set a few environment variables in order to function properly.

Variable Data type Example Description
APP_DOMAIN string oca.li Domain which the app will use
APP_NAME string Oca Name of the app, e.g. "Mini". This will be displayed on page titles, content, etc.
APP_TAGLINE string A URL shortener Shows next to the app icon, leave blank to hide tagline
DATABASE_URL string mysql://root@localhost/db URL that points to your database

Setup

  1. Run npm install, this will install all the dependencies.
  2. Set up all the environment variables specified in the Configuration variables section.
  3. Find a short domain to use for the app.
  4. Start the server by running npm start.

License

MIT

About

πŸ“ A straightforward URL shortener boasting a simple design

License:Other


Languages

Language:JavaScript 47.8%Language:HTML 27.5%Language:CSS 24.7%