URL Shortener is a popular service like reurl.cc. The demo uses python flask as backend and SQLite as database. Since AWS service needs to cost money, the CI/CD and AWS CodeDeploy won't put on this repo.
To get a local copy up and running follow these simple steps.
pip install pipenv
pipenv --version # pipenv, version 2022.4.8
- Clone the repo
git clone https://github.com/archiexdex/URL_Shortener_DEMO.git
- Install python packages
cd ./URL_Shortener_DEMO
# Install the package
pipenv install
# Enter the environment
pipenv shell
- Set your
.env
SECRET_KEY=<YOUR SECRET KEY>
DATABASE_URL=sqlite:///url.db
APP_SETTINGS=config.DevelopmentConfig
FLASK_APP=core
- Run
.env
source .env
- Build your database
flask db init
#flask db migrate
#flask db upgrade
- Run with flask
flask run