Git Product home page Git Product logo

ballerina-www's Introduction

Ballerina.io (ballerina-www)

Setting up the development environment

Prerequisites

Building

  1. git clone https://github.com/ballerina-platform/ballerina-www.git
  2. git submodule update --init --recursive
  3. mvn clean install

Running

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.

  1. To install, execute npm i -g serve.
  2. 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.

To start the playground widget in development server separately

After following below steps, webpack will host playground widget at http://localhost:3000 and changes done to source files will be hot deployed.

  1. 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)

  2. cd playground-widget && npm run start

License

This source is license under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.

ballerina-www's People

Contributors

thimuth avatar madhuramendis avatar kaviththiranga avatar samgnaniah avatar samisawso2 avatar jeradrutnam avatar chamilad avatar hisamith avatar sinthuja avatar lakwarus avatar nirmal070125 avatar yasassri avatar suhothayan avatar tylerjewell avatar dsotnikov avatar chrishantha avatar mohanvive avatar ayomawdb avatar chanaka3d avatar bhashinee avatar kasun-indrasiri avatar anuruddhal avatar ldclakmal avatar chanakaudaya avatar anoukh avatar pubudu91 avatar keizer619 avatar natashawso2 avatar nadeeshaan avatar manuranga avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.