GithubHelp home page GithubHelp logo

chukwudinebo / paystack-payment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from backendharry/paystack-payment

0.0 0.0 0.0 750 KB

A project to help learn paystack's integration

JavaScript 65.29% CSS 33.00% HTML 1.71%

paystack-payment's Introduction

Username = fakeAdmin password = admin123

Express session Authentication

Description

The project is a project based on a minimal e-commerce web store with just a one product but rich in features. Frontend design (UI/UX) is a chanllenge from FRONTENDMENTOR. Needed some quick Ui to build with and frontendmentor was the best resource to find, offcourse with the designs, images, e.t.c

project link is https://paystack-pratice.herokuapp.com/ Hosted on HEROKU

Stacks used for project

The stacks used for the project is the popular MERN(MongoDb, Express, React, Node.js) and my reason for using the stack is because its flexible, good for scalability(using the event loop), and it has a larger community including frameworks, libraries, e.t.c (offcourse, it's JS so yeeeaaa!! LOL). The project as well uses the Paystack API for handling it's payment with it's Custom Theme(from paystack).

Starting The project (INTRODUCTION)

For this project, users don't need to register using a register route or a frontend for it. My reason because, its a fun and a project for learning, so no need for the delay, we just head straight to the app features.

  1. Add items to cart and
  2. click on checkout in the modal(the cart icon).
  3. Since user is not logged in to use sessions, a middleware kicks prompting login, which the user will use the custom details i.e fakeAdmin for username and "admin123" for password. Email Can be any email of your choice and it should be legit to get a receipt from paystack pertaining payment made.
  4. continue adding to cart and finally click on checkout. 5) This time around , user will be redirected to make payment with paystack's payment page.
  5. after payment completion, user is redirected back to app where we will verify payments and ensure payment was really made successfully.

Tools used

  • dotenv
  • express
  • MongoDB and mongoose
  • Passport and Passport-local
  • express-session
  • connect-mongo
  • Bcrypt
  • Paystack
  • React (using npx create-react-app)
  • axios
  • e.t.c

How to run the project

  • First make sure Node is installed, simply go to their offcial site and follow the steps for downloading node.
  • Check if node is installed by typing the command below to see if a version pops up, if a version does, it means node js is successfully installed.
npm --version
  • follow this step to run project server, assumming paystack-payment is the path of the project
cd paystack-payment
npm install
npm run dev
  • for the project frontend
cd paystack-payment
cd client
npm install
npm run start
//Happy Coding..

paystack-payment's People

Contributors

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