GithubHelp home page GithubHelp logo

canyener / indecision-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 4.33 MB

A very common and very small app to learn basic fundamentals of react.

License: MIT License

HTML 1.06% JavaScript 57.28% SCSS 41.67%
react jsx babel babel-preset-env babel-preset-react webpack normalize-scss scss loaders sonarcloud

indecision-app's Introduction

CI Quality Gate Status

indecision-app

Add your options, let the computer guide you!

When using React with cdn

Add react cdn and app.js script to index.html

<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="/scripts/app.js"></script>

With global modules (I strongly recommend you should avoid global modules)

Install live-server globally with yarn add global live-server or npm install -g live-server

Install babel-cli globally with yarn add global babel-cli or npm install -g babel-cli

Run this command as a script to compile

babel src/app.js --out-file=public/scripts/app.js --presets=env,react --watch

Run this command to start web server

live-server public

Without global modules (Yay!)

Install live-server by running yarn add live-server

Install babel-cli by running yarn add babel-cli

Add script for compiling,

example script: "babel-compile": "babel src/app.js --out-file=public/scripts/app.js --presets=env,react --watch"

Add script to start web server

example script: live-server public/ --port=<port-number-you-choose>

When using webpack

yarn run serve to start web server yarn run build to compile code with webpack

or simply run

yarn run dev-server to compile and start web server with webpack

indecision-app's People

Contributors

canyener avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

indecision-app's Issues

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.