Giter VIP home page Giter VIP logo

application-template's Introduction

Application Template

This is a template for a simple application for VSK Apps. It is based on the Python, Vue.js and TypeScript.

Dependencies

Application template depends on the following packages:

Start Application Template

To start Application, run the following steps:

  1. Clone the repository
git clone [email protected]:Vasak-OS/application-template.git
  1. Move to the directory
cd application-template
  1. Install dependencies and Build UI
cd ui/
yarn install
yarn build
cd ..
  1. Start Application
python application-template.py --webEngineArgs --remote-debugging-port=3030 --remote-allow-origins=http://127.0.0.1:3030 # --debug
python application-template.py # normal mode

PKGBUILD Template

# Maintainer: Your Name <your_email@domain>

pkgname=application-template
pkgver=0.0.1
pkgrel=1
pkgdesc="PKGBUILD template for VSK Apps"
url="https://github.com/Vasak-OS/$pkgname/"
depends=(
    'python-libvasak'
    'libvasak-ui'
)
makedepends=(
    'nodejs'
)
license=('GPL')
arch=('x86_64')
md5sums=('68c81dfe3a33b44ea3c88451fccdc159')
source=("$url/archive/refs/tags/$pkgver.tar.gz")

package() {
    cd $pkgname-$pkgver
    install -dm755 "${pkgdir}/usr/share/${pkgname}/"
    install -d "${pkgdir}/bin"
    cd "${pkgdir}/usr/share/${pkgname}/ui" && npm i && npm run build
    cp -r "${srcdir}/${pkgname}-${pkgver}/src/*" "${pkgdir}/usr/share/${pkgname}/src/"
    cp -r "${srcdir}/${pkgname}-${pkgver}/ui/dist/*" "${pkgdir}/usr/share/${pkgname}/ui/dist/"
    cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/share/${pkgname}/"
    cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}.py" "${pkgdir}/usr/share/${pkgname}/"
    
    chmod a+x "${pkgdir}/usr/share/${pkgname}/${pkgname}"
    ln -sf "/usr/share/${pkgname}/${pkgname}" "${pkgdir}/bin/${pkgname}"
}

Contributors

application-template's People

Contributors

dependabot[bot] avatar joaquindecima avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.