Setting up the development environment
- Maven
- Node (v8.9.x or latest LTS release) + npm (v5.6.0 or later)
- Go
- Python
- MKDocs
- BeautifulSoup4
- lxml
git clone --recurse-submodules https://github.com/ballerina-platform/ballerina-www.git
mvn clean install
Once build is completed, you can find the generated www folder at <repo-root>/website/target/webroot/
. If you already have a running HTTP server, copy the webroot
folder there and point the browser to it.
Else, since you already have NodeJs installed, install serve - a simple webserver on NodeJs.
- To install, execute
npm i -g serve
. - To start the server, execute
cd website/target/webroot && serve
.
Note:- This is just a simple HTTP server and will not hot deploy changes. In order to apply the changes you do, you need to run
mvn install
to build.
This will start a webserver with <repo-root>/website/target/webroot/
path set as the webroot and by default can be consumed via http://localhost:5000
.
After following below steps, webpack will host playground widget at http://localhost:3000 and changes done to source files will be hot deployed.
-
cd playground-widget/ballerina/composer/modules/web && npm install
(we need this ATM as babel tries to load babel plugins from ballerina/composer/modules/web/node_modules for js files from composer) -
cd playground-widget && npm run start
This source is license under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.