GithubHelp home page GithubHelp logo

sglass520 / resistor-pwa Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.7 MB

Simple resistor color calculator PWA and Apache Cordova project

Home Page: https://stephen.glass/resistor

License: MIT License

Java 12.09% Objective-C 10.14% C# 2.91% HTML 26.24% CSS 43.15% JavaScript 5.48%
pwa android javascript cordova html css website

resistor-pwa's Introduction

Resistor Calculator PWA

Simple open-source app to calculate a resistor value from it's color codes. Choose between two themes: drop-down menus or color picker mode. Also, available on the web as a progressive web app.

Live Demo

Click here for the live demo PWA

Screenshot of PWA

Getting Started

These instructions will guide you to install the software on your own system for development and testing.

Prerequisites

  • Web server such as XAMPP or Chrome Web Server [PWA]
  • Apache Cordova [Android App]
  • Node.js [Android App]
  • Java JDK 1.8 [Android App] (IMPORTANT: Must be JDK 1.8)
  • Android SDK [Android App]
  • Gradle [Android App]

Installing PWA

Progressive web apps (PWAs) are reliable, fast, and engaging apps that are able to be installed on a user's homescreen directly from the web. PWAs can offer similar experiences to native apps but with all the benefits of being a web application such as fast updates and being cross-platform. Because a PWA is basically a web page, you will need to install a web server such as XAMPP or Chrome Web Server.

  1. Copy the directory /pwa/ from the repo to your web directory
  2. Edit the manifest.json and web files as desired

That's it.

Installing Android App

The PWA is ported to Android and iOS by using Apache Cordova which allows us write mobile applications using standard HTML/CSS/JavaScript. We are able to easily port our PWA to mobile using Cordova. I will demonstrate how to build for the Android platform on Windows 10.

  1. Install Apache Cordova and prerequisites (Node.js)
C:\>npm install -g cordova
  1. Create the app project Open a PowerShell window in the directory to create the app and invoke the Cordova CLI.
cordova create app com.example.app demoApp
  1. Install the Android platform Open the created directory and invoke the Cordova CLI again to add platforms.
cd app
cordova platform add android
  1. Copy files to directory Copy the files in the /cordova/ directory in the repo to your Cordova app directory.

  2. Install plugins The app uses two cordova plugins: statusbar to change the status bar color to match the app theme, devicefeedback to add haptic and acoustic feedback when a user presses a button.

cordova plugin add cordova-plugin-statusbar
cordova plugin add cordova-velda-devicefeedback
  1. Build and run Build and run the app using the commands listed below.
cordova build android
cordova run android

Built Using

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

resistor-pwa's People

Contributors

sourcevg 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.