Giter Site home page Giter Site logo

remuollinen / delivery-fee-calculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.12 MB

A delivery fee calculator written with React + TypeScript

Home Page: https://condescending-euler-68cf1f.netlify.app/

HTML 15.76% CSS 16.39% TypeScript 67.85%

delivery-fee-calculator's Introduction

Delivery Fee Calculator

  • This application calculates the delivery price based on what values the user inputs (cart value excluded).

  • The user can input cart value, delivery distance, number of items and time for delivery.

  • Built with React and TypeScript

  • Live version hosted on Netlify. See it here.

Usage

  1. Get the application folder to your local computer in your preferred way (i.e. forking or cloning this project). You could have also downloaded it if the project folder was shared with you.

  2. Open the folder in your chosen code editor and navigate to the folder via CLI

> cd FOLDER_PATH
  1. Since the node_modules folder is ignored or missing from the project folder, you have to install node_modules
> npm install
  1. To run the application in your browser, on localhost:3000, type the following command
> npm start

You should see this in your browser (with empty fields)

screenshot

Tests

  • To run tests, type the following command via CLI
> npm test
  • If no tests are run, follow the instructions given in your CLI.
  • You might need to press Enter to run the tests. If that doesn't yet show below view, press a to run all tests.

Possible output of tests

screenshot of test results

Possible next features

  • A feature, where the rules for calculating delivery fee are explained.

Resources

delivery-fee-calculator's People

Contributors

remuollinen avatar

Watchers

 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.