No description
| conf | ||
| css | ||
| images | ||
| js | ||
| py | ||
| .gitignore | ||
| attribution.md | ||
| build.json | ||
| INSTALL.md | ||
| README.md | ||
| wnf.py | ||
wnframework
Full-stack web application framework that uses python/mysql on the server side and a tightly integrated client side library. Primarily built for erpnext.
Projects: erpnext | webnotes/erpnext
Setup
To start a new project, in the application root:
- Set wnframework folder as the
libfolder. - Copy the following files from lib/conf:
index.cgi,build.json,conf.py. - Create folders
js,css,modules,modules/startup. These folders contain the js, css assets and modules folder is where all the new application modules will be created. - Update database name/password in conf.py and set modules folder to "modules".
- Run
$ lib/wnf.py --install dbrootpassword newdbname lib/conf/Framework.sqlto install a fresh database. - Create
app.jscontaining basic application info (seelib/conf) - Create empty files
__init__.pyandevent_handlers.pyinmodules/startup. This is where you write all events (like, onlogin, onlogout etc) - Run
$ lib/wnf.py -bto build js and css assets frombuild.json. - Go to the browser and go to your application folder. The admin username is "Administrator" and password is "admin"
enjoy!
wnf.py
$ lib/wnf.py --help for more info
License
wnframework is freely available to use under the MIT License