Giter Site home page Giter Site logo

frankly034 / online-payment-fe Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 59 KB

This is a React app, bootstrapped using Vite. It is part of a tutorial series (See playlist) to illustrate how to integrate payment using an application's payment api.

Home Page: https://sickle-cell-donation.netlify.app/

HTML 2.56% TypeScript 80.20% CSS 17.24%
axios custom-hooks-in-react formik-yup react react-query typescript

online-payment-fe's Introduction

Online Payment FE (Donations App)

This is a React app, bootstrapped using Vite. It is part of a tutorial series (See playlist) to illustrate how to integrate payment using an application's payment api. The api is hosted with Railway App at this url => https://online-payment-api-production.up.railway.app/

To use the already hosted api, update the environment variable: VITE_BACKEND_URL=https://online-payment-api-production.up.railway.app/api

Table of Contents

App Features

  • A donor visiting the app, is greeted with a donate page ๐Ÿคญ to make donations for Sickle Cell research.
  • Upon submittion of a valid donation form, the donor is redirected to paystack to conclude payment by providing card/bank details.
  • Once transaction is concluded on paystack the donor is redirected back to the application to a thank you page acknowledging donation ๐Ÿ™๐Ÿฝ.

Concepts and APIs Employed

  • The API employed for donation was gotten from a previous project: Online Payment API. Checkout the youtube playlist of a walkthrough on how the API was built here.
  • API documentation can be found here
  • This app demonstrates the use of React concepts like:
    • Components structuring
    • Routing and templating with react route dom v6
    • API integration with axios
    • Data fetching management with @tanstack/react-query
    • Custom hooks
    • Typescript concepts like (generics, interfaces, etc)
    • Form validation with formik and yup
    • Simple form generator with validation using formik and yup

Built with

  • HTML5
  • CSS3
  • JavaScript
  • React

Mock Designs

See mock design guides for the app below;

  • Donate Page.
  • Donations/Receipt Page.
  • Error Page.

Required Installations

  • Npm
  • API app running SEE

Installation of This Repository

Once you have installed the required packages with the api app running as shown on the Required Installations, proceed with the following steps

Clone the Repository

your@pc:~$ git clone [email protected]:frankly034/online-payment-fe.git

Move to the downloaded folder

your@pc:~$ cd online-payment-fe

Install all packages

your@pc:~$ npm install

Open the app

your@pc:~$ npm run dev

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Acknowledgements

online-payment-fe's People

Contributors

frankly034 avatar

Stargazers

 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.