Skip to content

panutat/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener

A REST API for shortening URLs

Requirements

  • MySQL instance with database named 'shrtr' (or whatever you choose)

Installation

git clone https://github.com/panutat/url-shortener.git
cd url-shortener
npm install

Configuration

Update /config/development.json with your own MySQL credentials. Set 'cleanupAfterRestart' to false if persistence between API server restart is desired.

{
    "db": {
        "host": "127.0.0.1",
        "user": "root",
        "password": "root",
        "database": "shrtr",
        "cleanupAfterRestart": true,
        "initialAutoIncrement": 11111111
    }
}

Run development server

npm run dev

Run test

npm run test

Run linting

npm run lint

About

A REST API for shortening URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published