Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 756 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 756 Bytes

Joel's Simple URL Shortener

Introduction

Joel's Simple URL Shortener is a fun web application built using Flask and PostgreSQL.

Try it out

You can try out the URL Shortener at https://joelloong.com.

Some example URLs you can try to shorten:

- https://joelloong.com
- https://github.com/joloong/url-shortener
- https://www.google.com

Development

Setting Up

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Setting Up Database

flask db migrate
flask db upgrade

Creating .env in root folder

echo DATABASE_URL=<your-database-url> > .env

Starting Up Development Server

FLASK_APP=app.py FLASK_ENV=development flask run