Web client for loklak server (see: https://github.com/loklak/loklak_server ). To use the loklak webclient, you need a running loklak server. Install and run it first.
- Clone this repo from
https://github.com/loklak/loklak_webclient.git
- Create your custom settings file by using
cp configFile.json custom_configFile.json
. Edit your settings insidecustom_configFile.json
. - Run
npm install
from the root directory - Run
gulp dev
(may require installing Gulp globallynpm install gulp -g
) - Your browser will automatically be opened and directed to the browser-sync proxy address
- To prepare assets for production, run the
gulp prod
task (Note: the production task does not fire up the express server, and won't provide you with browser-sync's live reloading. Simply usegulp dev
during development. More information below)
Now that gulp dev
is running, the server is up as well and serving files from the /build
directory. Any changes in the /app
directory will be automatically processed by Gulp and the changes will be injected to any open browsers pointed at the proxy address.
Set the apiUrl var in custom_configFile.json
to set the server address in apiUrl
Set the domain var in custom_configFile.json
to set the domain where site is hosted in domain
- On *nix based systems (latest Ubuntu, Fedora version) you might get an
Error: watch ENOSPC
when runninggulp dev
. To fix, check this post on Stackoverflow.