Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Template llana #670

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added templates/llana/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/llana/assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions templates/llana/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Output, Services } from "~templates-utils";
import { Input } from "./meta";

export function generate(input: Input): Output {
const services: Services = [];

services.push({
type: "app",
data: {
serviceName: input.appServiceName,
env: [
`DATABASE_URI=${input.databaseType}://${input.dbUsername}:${input.dbPassword}@${input.dbHostname}:${input.dbPort}/${input.dbName}`,
`JWT_KEY=${input.jwtSecret}`,
`DOMAIN=$(PRIMARY_DOMAIN)`,
`SOFT_DELETE_COLUMN=deletedAt`,
].join("\n"),
source: {
type: "image",
image: input.appServiceImage,
},
domains: [
{
host: "$(EASYPANEL_DOMAIN)",
port: 80,
},
],
},
});

return { services };
}
110 changes: 110 additions & 0 deletions templates/llana/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: llana
description:
Llana is a lightweight no-code API wrapper that exposes a REST API for any
database within minutes. Stop wasting time building endpoints, just connect
your database and start playing. Open source, free to use, and no vendor
lock-in.
instructions: null
changeLog:
- date: 2024-12-10
description: First release
links:
- label: Website
url: https://llana.io/
- label: GitHub
url: https://github.com/juicyllama/llana
contributors:
- name: Ahson Shaikh
url: https://github.com/Ahson-Shaikh
schema:
type: object
required:
- appServiceName
- appServiceImage
- databaseType
- dbHostname
- dbUsername
- dbPassword
- dbPort
- dbName
- jwtSecret
properties:
appServiceName:
type: string
title: Application Service Name
default: llana
appServiceImage:
type: string
title: Application Service Image
default: juicyllama/llana:v1.14
databaseType:
type: string
title: Database Type
default: postgresql
oneOf:
- enum:
- postgresql
title: PostgreSQL
- enum:
- mysql
title: MySQL
dbHostname:
type: string
title: Database Hostname
dbUsername:
type: string
title: Database Username
dbPassword:
type: string
title: Database Password
dbPort:
type: string
title: Database Port
dbName:
type: string
title: Database Name
jwtSecret:
type: string
title: JWT Secret
description: Provide a 32-character long JWT secret.
benefits:
- title: No-Code API Generation
description:
Automatically generate REST APIs for your database within minutes without
writing any code. Connect, configure, and go!
- title: Open Source and Free
description:
Llana is open-source, free to use, and ensures no vendor lock-in, giving
you full control of your data and infrastructure.
- title: Lightweight and Fast
description:
Designed for high performance with minimal resource usage, Llana is
perfect for both small and large-scale applications.
features:
- title: Instant REST API
description:
Generate REST APIs for any database instantly. Expose endpoints to query,
insert, update, and delete records.
- title: Multi-Database Support
description:
Connect to PostgreSQL, MySQL, and other popular databases seamlessly.
- title: Authentication and Security
description:
Secure your API with JWT-based authentication and configurable security
rules.
- title: Easy Configuration
description:
Set up Llana with a simple configuration file. No complex coding required.
- title: Vendor Lock-In Free
description:
Run Llana on your own servers or infrastructure without being tied to any
platform.
- title: Extendable
description:
Customize and extend Llana to fit your application's needs through
open-source contributions.
tags:
- API
- No-Code
- Database
- Open Source