Skip to content

URL shortener project that I'm developing on my livestreams

License

Notifications You must be signed in to change notification settings

belimawr/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

This repository contains the code for a URL shortener that I'm developing as part of my live-streams on YouTube. As of now this project is far from complete, but at some point it will be "production-ready".

Database

We use Postgres as a database, to start it for local devlopment using Docker, run:

docker run --name url-shortener-postgres -it -e POSTGRES_HOST_AUTH_METHOD=trust  -e POSTGRES_DB=url -e POSTGRES_USER=db_user -p 5432:5432  postgres:alpine

To connect to the database using docker and psql, run:

docker exec -it url-shortener-postgres psql -U db_user url

To create the tables use the following SQL statement:

CREATE TABLE urls (
       id SERIAL PRIMARY KEY,
       token varchar(50) UNIQUE NOT NULL,
       url varchar(2048) UNIQUE NOT NULL
);

LICENCE

GPLv3

About

URL shortener project that I'm developing on my livestreams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages