Website link shortener
Just a small project for casual use.
$ git clone https://github.com/MurilloMB/FlaskLinkShortener.git
- Python 3.13 or newer
- Git
All you need is inside the requirements.txt file.
Just clone the repository, create a virtual envinronment in python with
$ python -m venv venv
After that get into the virtual envinronment according your operational system
$ .\venv\Scripts\activate.bat
Need execution policy set to unrestricted to work
$ source ./venv/bin/activate
And at final
$ pip install -r requirements.txt
First step is get in to your virtual envinroment, if you don't know how go to - Getting Started
Second step is set the local variable (SECRET_KEY) for database encryption purposes
$ $env:SECRET_KEY = "<YOUR_SECRET_KEY>"
$ set SECRET_KEY=<YOUR_SECRET_KEY>
The SECRET_KEY need to be a 32 url-safe base64 bytes, like that mZ1Wv0TRoG5pL7klT9oYbVv9XBbkIPhPTfBQsyvVr0k=
Use that command for initialize the database
$ flask initdb
Use the correctly startup for your operational system
$ .\run.bat
$ ./run
- [Python] (https://www.python.org/) - Language
- [SQLite3] (https://sqlite.org/) - Database
- [Waitress] (https://pypi.org/project/waitress/) - Server provider
- @thomascsd Thanks for VSCode Readme Pattern Extension