Learn from links. #7 featured product on ProductHunt. free & opensource!
python -m pip install -r requirements.txt
Create .env with the following (or add the following environment variables) or add those to instance/config.py
SQLALCHEMY_DATABASE_URI = "sqlite:///linkversity.db"
SALT = "some-salt"
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY= ''
SECRET_KEY = 'secret-secret'
Optional
APP_NAME = ''
ACTIVE_FRONT_THEME = ''
ACTIVE_BACK_THEME = ''
If using gunicorn locally, use this
import os
from dotenv import load_dotenv
for env_file in ('.env', '.flaskenv'):
env = os.path.join(os.getcwd(), env_file)
if os.path.exists(env):
load_dotenv(env)
Add config.json file in root dir with content
{
"admin_user": {
"username": "appinv",
"email": "[email protected]",
"password": "pass"
},
"settings": {
"APP_NAME": "Demo",
"ACTIVE_FRONT_THEME": "blogus",
"ACTIVE_BACK_THEME": "boogle",
"CURRENCY": "MUR"
}
}
Run
shopyo initialise --no-clear-migration
flask run --debug
Frontend files located at /static/themes/front/linkolearn_theme