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
lib
folder. - 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.sql
to install a fresh database. - Create
app.js
containing basic application info (seelib/conf
) - Create empty files
__init__.py
andevent_handlers.py
inmodules/startup
. This is where you write all events (like, onlogin, onlogout etc) - Run
$ lib/wnf.py -b
to 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