Skip to content

anandhu-gopi/URL-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLShortner

The following document covers the following aspects

  • How to run the program

How to run the program

Use the package manager pip to install the dependencies from the requirements.txt file.

    pip install -r requirements.txt

Set the following environment variables

    export FLASK_APP=app
    export FLASK_ENV=development
    export SECRET_KEY="SomeRandomSecret"

Run init_db.py to create the necessary tables

    python init_db.py

The following command will run the app on port number 5000

     python app.py

Example

    export FLASK_APP=app
    export FLASK_ENV=development
    export SECRET_KEY="SomeRandomSecret"
    pip install -r requirements.txt
    python init_db.py
    python app.py

Open a browser and type in the URL http://127.0.0.1:5000/ to access the URLShortner page from browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published