- Clone the repo and
cdto it pyvenv-3.5 .venvpip install -r requirements.txtpip install -e .npm installcp gsweb/defaults.cfg gsweb.cfg- Set a
SECRET_KEYin gsweb.cfg and changeSQLALCHEMY_DATABASE_URIif necessary - Create a Postgres database, e.g. using
createdb gsweb
- Install eslint and sass-lint so it's in your PATH (e.g.
sudo npm install -g eslint sass-lint) pip install pep8ln -sr pre-commit.githook .git/hooks/pre-commit
If you do not want to install eslint globally you can also install it locally,
copy the git hook instead of symlinking it and point the ESLINT_CMD variable
in the script to the local eslint (e.g. node_modules/.bin/eslint).
The same applies to sass-lint (SASSLINT_CMD)
export FLASK_APP=gsweb._cliapp FLASK_DEBUG=1 GSWEB_CONFIG=/path/to/your/gsweb.cfgflask createdb(creates tables in the database)flask gulp(monitors and rebuilds assets)flask run --with-threads