Giter Club home page Giter Club logo

js-fijs-sample's Introduction

Flight Indicators JS Sample (FIJS Sample)

This basic implementation shows how to use FIJS with npm and webpack.

NPM Status

Installation

  • Create a new module using npm:
npm init
  • Add webpack and plugins:
npm i webpack webpack-cli --save-dev
npm i webpack-dev-server --save-dev
npm i css-loader --save-dev
npm i copy-webpack-plugin --save-dev
  • Create directories src, img and css:
mkdir src
mkdir css
mkdir img
  • Copy package.json and webpack.config.js files from this repository into your project directory.

  • In the src directory copy index.html and index.js

  • Install FIJS:

npm i flight-indicators-js@latest
  • Copy the svg images form the library into the img directory
cp -v node_modules/flight-indicators-js/img/*.svg ./img
  • Copy the flight-indicators.css file form the library into the css directory
cp -v node_modules/flight-indicators-js/css/flight-indicators.css ./css
  • Your directory must look like:
project/
|-css/
    |-flight-indicators.css
    |-style.css
|-img/
    |-*.svg
|-src/
    |-index.js
    |-index.html
|-package.json
|-webpack.config.js
  • Finally, start the dev server:
npm run start

<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:8080/
...
webpack 5.65.0 compiled successfully in 847 ms
  • Then open http://localhost:8080/ in your browser.

Author

Teocci ([email protected])

License

The code supplied here is covered under the MIT Open Source License.

Credits

Flight Indicators JS svg images was developed based on Flight Indicators jQuery plugin.

js-fijs-sample's People

Contributors

teocci avatar

Watchers

James Cloos 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.