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
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!
$ lib/wnf.py --help for more info
wnframework is freely available to use under the MIT License