Logo

Development Guide

Thanks for looking by - maybe this is helpful for you. If not the source code is available at Github

Contributing

If you want to contribute: feel free to do so :)

Backend

IT’s go :D nothing really to explain, install dependencies and build LEL.

lel@srv:~/lel$ go get
lel@srv:~/lel$ goxc
lel@srv:~/lel/cmd$ go build . -t LEL

For running configuration you can use dev.yml

lel@srv:~/lel/cmd$ ./LEL -debug -docu stuff

Frontend

Since I’m no frontend expert i’d love some tips :D

Start LEL and the npm serve


lel@srv:~/lel/cmd$ go run *.go -d
lel@srv:~/lel/static$ npm install <stuff>
lel@srv:~/lel/static$ npm run serve

The npm server is then served at https://127.0.0.1:8080. Afterwards, the following command can be used to start the backendServer with the dev settings enabled:

LEL_FRONTEND_URL=https://127.0.0.1:8080/static/lel-dev.js go run main.go -appDir ../../ -docu ~/lel-demo -debug

If the LEL_FRONTEND_URL environment variable is present, then this URL is used for the frontend. This also means, that the LeL frontend can easily be replaced if a better candidate

Errors & Pitfalls

if compiling isn’t working increase the inodes: Answer

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p