Giter Site home page Giter Site logo

vineetp6 / react-currency-converter-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agapas/react-currency-converter

1.0 0.0 0.0 158 KB

React currency converter - a single page app made with React in functional programming like approach, which uses the exchanged rates API

Home Page: http://agapas.github.io/react-currency-converter

License: MIT License

JavaScript 88.27% CSS 8.08% HTML 3.65%

react-currency-converter-1's Introduction

react-currency-converter

Simple currency conversion app, which uses exchanged rates API from exchangeratesapi.io. The app is made with React in a Functional Programming like approach. Unit tests are made with Jest and Enzyme.

Demo

In your package.json: change this line

  • "start": "react-scripts start"
  • to
  • "start": "react-scripts --openssl-legacy-provider start"

A note:

For the demo website purpose I used mocked data in this repo as since the 1st April 2021, the exchangeratesapi.io requires an API access key to use the service. You can sign up for a free API key or get the paid one on their website (just keep in mind that the free plan uses the http protocol).

When you will have the API access key:

  • add it as a value to API_ACCESS_KEY variable in the src/App.js file
  • in src/components/DataContorller.js:
    • remove mockData variable,
    • in componentDidMount method:
      • remove this.setState({ data: mockData });
      • uncomment this.loadData() line

UI example:

Additional info:

Used packages:

This project was bootstrapped with Create React App.

Running the project

  • go to project directory,
  • run npm i or yarn to install packages (just a first time),
  • run npm start or yarn start (it runs the app in the development mode and opens http://localhost:3000 automatically to view in the browser).

Testing the project

In the project directory run npm test. It launches the test runner in the interactive watch mode.
Run npm coverage to see coverage report.

Production build

To run a production build use command npm run build or yarn build. It builds the app for production to the build folder.

License

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

react-currency-converter-1's People

Contributors

agapas avatar vineetp6 avatar

Stargazers

 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.