IBM/swift-bluemix-dev-cli

Name: swift-bluemix-dev-cli

Owner: International Business Machines

Description: Create a React-based web application in less than 10 minutes

Created: 2017-03-14 05:36:56.0

Updated: 2017-07-14 12:02:04.0

Pushed: 2017-03-17 15:47:35.0

Homepage:

Size: 2285

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Creating a complete web application with React and Kitura

Learn to scaffold out a complete web application that uses a Kitura server to serve a React-based UI:

Prerequisites:
Modifing your application
  1. Open your project in your favorite editor or IDE

  2. If you want to use Xcode, run swift package generate-xcodeproj first.

  3. VSCode, Atom, and Sublime are all good choices, too.

    View code

  4. Make changes, for instance:

    rt React from 'react';
    rt {render} from 'react-dom';
    
    oad stylesheet
    ire("../sass/default.scss");
    
    s App extends React.Component {
    er () {
    return (
        <section>
            <p>Hello, World!</p>
        </section>
    );
    
    
    
    er(<App/>, document.getElementById('app'));
    
  5. Re-run npm install

  6. Refresh your browser

    View code


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.