mathuin / androidapps

A simple "store" for distributing Android apps, written in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

This is a very simple "store" for Android applications. It is useful for serving customers who do not have access to traditional Android stores such as Google Play or Amazon Appstore, or for developers who do not wish to use those stores to distribute their products.

The previous version was a Django app, and the heritage shows!

Installation

This package can be installed using go get:

go get github.com/mathuin/androidapps

Change to the appropriate directory and build the app:

go build

Documentation

Settings

Environment variables

The best/easiest way to configure this app is with environment variables.

export ANDROIDAPPS_DBFILE="androidapps.db"
export ANDROIDAPPS_HOST="0.0.0.0"
export ANDROIDAPPS_PORT="4000"
export ANDROIDAPPS_NAME="Jane Doe"
export ANDROIDAPPS_EMAIL="jane@example.net"

Flags

Sometimes environment variables just won't do. In those cases, use flags.

Flag Meaning
-dbfile Database file
-host Host
-port Port
-name Developer name
-email Developer email

Subcommands

Subcommand Purpose Arguments
runserver Run the server
list list products in database string match? enabled?
enable enable product (will need flag added to database) name
disable disable product (will need flag added to database) name
add add product to database APK file
remove remove product from database name force?
upgrade upgrade product in database (upload new APK) APK file

At this time, very few commands are implemented. Please be patient. :-)

TODO

  • Install the web stuff (static, media, templates) somewhere
  • Add QR code support

License

This software is released under the MIT license.

About

A simple "store" for distributing Android apps, written in Go.


Languages

Language:Go 78.9%Language:CSS 12.4%Language:HTML 7.8%Language:JavaScript 0.9%