Coder Social home page Coder Social logo

nathanleclaire / ballerina-www Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ballerina-attic/ballerina-www

0.0 3.0 0.0 43.08 MB

License: Apache License 2.0

HTML 87.98% JavaScript 4.43% CSS 4.98% Java 1.53% Shell 0.20% Makefile 0.01% Go 0.63% Ballerina 0.16% PHP 0.01% Jupyter Notebook 0.01% Ruby 0.01% Python 0.07%

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.

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.