This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path00README
51 lines (33 loc) · 1.64 KB
/
00README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Layout/Concept
Relies on system commands "barcode", "qrencode", "sam2p"
If your distribution does not provide "barcode", you can download source from:
ftp://mirrors.kernel.org/gnu/barcode/
If your distribution does not provide qrencode, it can be built from source:
http://fukuchi.org/works/qrencode
Gui all lives under "fossbarcode", uses django so you need python-django or
equivalent
Revision history uses dulwich for the python bindings, available from:
http://www.samba.org/~jelmer/dulwich
By default, typing "make" in the top-level will create the SQLite
database the app needs, and the documentation.
barcode: bulk of the gui code
models.py is the database/form models
views.py is the data/form processing code
media: css, images, docs, js, user_data
templates: html pages using django's "template" language for data/form
handling (these also have some javascript glue)
The web app can be run "in-place"; otherwise, it expects to be run
from /opt/linuxfoundation/fossbarcode. Typing "make install" (as root) will
install the application to this location for system use.
To run the gui/server (as user compliance for installed package):
/opt/linuxfoundation/bin/foss-barcode.py start (for running installed)
To run the application in place, you *must* first run "make" to create the
database and docs:
make
./foss-barcode.py start (for running in-place)
"foss-barcode.py stop" will stop the server.
to access the gui: http://127.0.0.1:8000/barcode
admin interface: http://127/0.0.1:8000/admin
(username compliance, password compliance)
See fossbarcode/dbsettings.py for information on using a database
engine other than SQLite.