https://github.com/rajatm544/flask_url_shortener
A URL Shortener built using the flask microframework of python, it is a responsive app that has been hosted using pythonanywhere.
https://github.com/rajatm544/flask_url_shortener
flask flask-microframework python pythonanywhere url-shortener
Last synced: 8 months ago
JSON representation
A URL Shortener built using the flask microframework of python, it is a responsive app that has been hosted using pythonanywhere.
- Host: GitHub
- URL: https://github.com/rajatm544/flask_url_shortener
- Owner: Rajatm544
- Created: 2020-12-02T15:04:38.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-16T06:01:36.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T05:44:47.452Z (10 months ago)
- Topics: flask, flask-microframework, python, pythonanywhere, url-shortener
- Language: Python
- Homepage: https://mrajat.pythonanywhere.com/
- Size: 28.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL Shortener
- This is a URL shortener built using the Flask microframework of python.
- The site also shows the number of times a given shortened URL has been visited
- To replicate this project on your machine, follow these steps:
1. **git clone** this repo
2. Run **pipenv install -r requirements.txt**, to install all dependencies from the pipfile.lock
3. Create a .env file to store details of sqlite db URI as **DATABASE_URL=sqlite:///name.db**
4. Create a .flaskenv file to set **FLASK_APP = url_shortener** and **FLASK_ENV = development**, so that you can run the app in development.
5. **flask run** is the command to start the development server(Note: execute this inside the pipenv shell)