Skip to content

archiexdex/URL_Shortener_DEMO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener DEMO

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.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

pipenv

pip install pipenv
pipenv --version # pipenv, version 2022.4.8

Installation

  1. Clone the repo
git clone https://github.com/archiexdex/URL_Shortener_DEMO.git
  1. Install python packages
cd ./URL_Shortener_DEMO
# Install the package
pipenv install
# Enter the environment
pipenv shell
  1. Set your .env
SECRET_KEY=<YOUR SECRET KEY>
DATABASE_URL=sqlite:///url.db
APP_SETTINGS=config.DevelopmentConfig
FLASK_APP=core
  1. Run .env
source .env
  1. Build your database
flask db init
#flask db migrate
#flask db upgrade
  1. Run with flask
flask run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published