Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple Online Store application
Python CSS JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
static
template
README.txt
app.py
app_global_conf.py
app_messages.py
config.ini.dist
db.sql

README.txt

onlinestore-multi, Simple Online Store application 
(c) Noprianto <nop@tedut.com>
2010
GPL 

Screenshots: https://github.com/nopri/onlinestore-multi/wiki


Features:
- Run as WSGI Application
- Multi Language (currently English and Bahasa Indonesia)
- Pretty URL
- Template/Theme Support (bundled: 4)
- File Manager 
- Product Category/Group/Item
- Link/Widget Support
- News Module
- FAQ Module
- User Contents (+Menu)
- Shopping Cart
- Simple Invoice Management
- Simple Statistics
- Custom Membership Level  
- Send Email (Cart Checkout)
- Captcha (Random Font)
- More


Using:
- Python
- web.py
- jQuery/jQueryUI (bundled, old version)
- PyYAML
- BeautifulSoup
- GeoIP
- Python Imaging Library
- MySQL (and MySQLdb) 


Default user/password: admin

 
Installation (with Python already installed):
- We will use Apache HTTP Server for WSGI.

- Install: web.py, PyYAML, BeautifulSoup, Python GeoIP, PIL, MySQL Server, Python MySQLdb
  Ubuntu-based distribution (put command in one line):
  $ sudo apt-get install python-webpy python-yaml python-beautifulsoup python-geoip python-imaging mysql-server python-mysqldb

- Download onlinestore-multi source code, or clone from GitHub
  $ git clone https://github.com/nopri/onlinestore-multi.git

- Change into root directory of source code:
  $ cd onlinestore-multi

- Create new MySQL database and restore from dump file:
  $ mysql -u root -p
  mysql> create database onlinestore;
  mysql> grant all privileges on onlinestore.* to onlinestore@localhost identified by 'onlinestore_password';
  mysql> flush privileges;
  mysql> quit;

  $ mysql -D onlinestore -u onlinestore -p < ./db.sql 

- In root directory of source code:
  $ cp config.ini.dist config.ini

- Edit config.ini

- If you are using /tmp/onlinestore-multi-session as session directory, 
  please make sure it is writeable by user who is running web server
  Ubuntu-based distribution:
  $ sudo chown www-data -R /tmp/onlinestore-multi-session

- Configure WSGI
  Ubuntu-based distribution:
  $ sudo apt-get install libapache2-mod-wsgi
  
  For default domain 
  (replace /tmp/onlinestore-multi with your configuration):

  $ sudo nano /etc/apache2/sites-available/default
  (put this line before VirtualHost definition)
  WSGIPythonPath /tmp/onlinestore-multi/

  (put these lines below DocumentRoot)

  WSGIScriptAlias / /tmp/onlinestore-multi/app.py/
  AddType text/html .py
  Alias /static /tmp/onlinestore-multi/static/
  
  $ sudo service apache2 reload
  
 
Thank you :)
Something went wrong with that request. Please try again.