# Removed circular import causing issues
import logging

from flask import Flask, render_template, request, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from models import db, AppCatalogue

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app_catalogue.db'

with app.app_context():

@app.route("/", methods=["GET"])
def home_route():
    return redirect(url_for("catalogue"))

@app.route("/add_app", methods=["GET", "POST"])
def add_app():
    if request.method == "POST":
        app_name = request.form["app_name"]
        app_url = request.form["app_url"]

About this template

The Get Lazy application Launcher is used to launch and monitor your apps in a production environment - For paid subscriptions only.

Introduction to the GET LAZY APP APPLICATION LAUNCHER Template

The GET LAZY APP APPLICATION LAUNCHER template is designed to help you launch and monitor your applications in a production environment. This template is particularly useful for those with paid subscriptions who need a reliable and easy-to-use platform to manage their apps. With Lazy, you can deploy your app without worrying about setting up environments or installing libraries. Let's walk through the steps to get your app up and running using this template.

Starting with the Template

To begin using the GET LAZY APP APPLICATION LAUNCHER template, simply click on "Start with this Template" on the Lazy platform. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy or paste any code manually.

Initial Setup

Before testing the app, ensure that you have all the necessary information to fill in when prompted. This may include details such as app names, URLs, descriptions, and photo URLs that you want to include in your app catalogue.

Test: Pressing the Test Button

Once you're ready, press the "Test" button on the Lazy platform. This will begin the deployment of your app. If the code requires any user input, the Lazy CLI will prompt you to provide this information after you press the Test button.

Entering Input

If the template requires user input, you will be prompted to enter the necessary details through the Lazy CLI. This input could include the name of your app, the URL, a description, and a link to an image for your app. Make sure you have this information on hand before starting the test.

Using the App

After deployment, if the code contains a frontend, Lazy will provide you with a dedicated server link to access the UI or dashboard. This allows you to interact with your app catalogue, add new apps, edit existing ones, and share them with others.

Integrating the App

If you need to integrate the app with external tools, you may need to use the server link provided by Lazy. For example, if you want to embed the app catalogue in another website, you would use the server link as the source for an iframe or as part of an API call to fetch app details.

Remember, Lazy handles all the deployment details, so you can focus on building and managing your apps. Follow these steps, and you'll have your production app catalogue set up in no time.

Last published
May 18, 2024

More templates like this

CSV Deduper

A webpage that dedupes a CSV based on the values in the first column and allows for downloading.


Versatile Input Form

Develop a versatile input form for users.


AI Specific Website Scraper

Provide a url and the information you need to extract . It will provide you the extracted information from that url