angeldollface / ceramic

A small Vue.js 3 app to validate IMEI numbers. :lock: :rocket:

Home Page:https://angeldollface.boo/ceramic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CERAMIC πŸ”’ πŸš€

GitHub CI

A small Vue.js 3 app to validate IMEI numbers. πŸ”’ πŸš€

ABOUT πŸ“š

Since I was trying to figure out the algorithm for validating IMEI numbers for a uni course, I thought I'd write a small app that solves this interesting problem. This little app checks whether the IMEI number of any one of your devices is valid or not by computing the check digit and comparing this to the actual check digit. The "Luhn Algorithm" is used to do this. A link to the library it uses in the background can be found in the section below.

LINKS 🌎

  • Library implementation in ECMA Script: VIEW
  • Library implementation in Rust: VIEW
  • Web app implementation in Yew.rs: VIEW

DEPLOYED PROJECT ON GITHUB PAGES πŸš€

To view a live deployed version of this project, click here: VIEW

USAGE πŸ”¨

  • 1.) Visit this link.
  • 2.) Get the IMEI for your device from the instructions for your platform. (You might have to scroll a bit.)
  • 3.) Copy this IMEI number or write it down.
  • 4.) Put the number into the input field.
  • 5.) Click "VALIDATE"!
  • 6.) Receive the status of your IMEI number from the text below the "VALIDATE" button that says IMEI valid: Enter an IMEI number!.

Note: You can use this fake IMEI for testing: 356728113476259

QUALITY ASSURANCE βœ…

I've tested this using the IMEI number of my iPhone and some IMEIs I found online.

TECHNOLOGIES USED πŸ’»

LUHN ALGORITHM IMPLEMENTATION βš™οΈ

The implementation of the Luhn Algorithm, the algorithm that actually validates IMEI numbers against their check digit, can be found in the file src/components/lib.ts.

TRY THE CODE FOR YOURSELF! πŸ“₯

Make sure you have the following tools installed and available from the command line:

  • Node.js
  • Git

Once you have these tools installed, execute these steps:

  • 1.) Get the source code:
$ git clone https://github.com/angeldollface/ceramic
  • 2.) Change directory into the source's root directory:
$ cd ceramic
  • 3.) Install the project's dependencies:
$ npm install
  • 4.) Run Vue's development server:
$ npm run serve
  • 5.) Optional: To compile this project, run this command:
$ npm run build

CHANGELOG βœ’οΈ

Version 1.0.0

  • Initial release.
  • Upload to GitHub.
  • Deployment on GitHub Pages.

Version 1.1.0

  • Added a footer.
  • Updated documentation.
  • Added input validation.
  • Added usage instructions.
  • Added an info section on IMEIs.

NOTE πŸ“œ

  • Ceramic πŸ”’ πŸš€ by Alexander Abraham πŸ–€ a.k.a. "Angel Dollface" 🎎 πŸŽ€
  • Licensed under the MIT license.

About

A small Vue.js 3 app to validate IMEI numbers. :lock: :rocket:

https://angeldollface.boo/ceramic

License:MIT License


Languages

Language:Vue 51.0%Language:SCSS 41.2%Language:HTML 4.7%Language:JavaScript 2.2%Language:TypeScript 0.9%