Coder Social home page Coder Social logo

s's Introduction

Short and simple link shortening

s provides an easy way to set up a self-hosted link shortener on your server.

s uses a JavaScript Restify server for the back-end. The front-end is built with VueJS, and uses Vuetify for the UI.

Installation

s requires NodeJS to be installed. Version 8+ is recommended.

  1. Install the dependencies by running yarn or npm i --production
  2. Copy config/config.ex.js to config/config.js and edit the config to your needs
  3. Run s with yarn run or node ./server.js or pm2 ./pm2.json

Planned Features

Support for multiple databases

  • MongoDB
  • PostgreSQL

API Server

  • Restify server

    • Visit link
    • Shorten url
    • Delete link
    • Create account
    • Authenticate
    • Change password
    • Get links for user
    • Ratelimit
      • Custom ratelimiter that isn't garbage
  • Express re-write

    • Link routes
    • Authentication routes
    • Authentication handler
    • Rate-limiting with per-route options
    • Optional static file serving
  • Short id generator

Website

  • Main functions
    • Shorten link
      • URL Validation
    • View links
    • Delete links
  • Accounts
    • Create
    • Log in
    • Change password
  • Error/failure display

Link analytics

  • Link visited
  • Created at

s's People

Contributors

brussell98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

s's Issues

Can't start

Hello, when I try to run s with one of the methods included in the README, it always gives me an error: "Error: Cannot find module './config/config.js'". Could you please fix this error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.