GithubHelp home page GithubHelp logo

diegoperea20 / nextjs-shopping-kart-paypal Goto Github PK

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

Nextjs with Prisma ORM REST API with sqlite where there is a login and register (you can change password and email) where each user can create shopping cart or shopping kart the products and know the total valueand pay with paypal.

JavaScript 74.60% CSS 25.40%
kart nextjs paypal prisma shopping sqlite store

nextjs-shopping-kart-paypal's Introduction

Nextjs Shopping Kart Paypal

Nextjs with Prisma ORM REST API with sqlite where there is a login and register (you can change password and email) where each user can create shopping cart or shopping kart the products and know the total valueand pay with paypal.

Step1

First create an account where you must create a username, password ("Must include at least one number.", "Must include at least one lowercase letter,"Must include at least one lowercase letter.", "Must include at least one uppercase letter.", "Must include at least one uppercase letter.","Must include at least one uppercase letter.", "Must include at least one uppercase letter.", "Must include at least one uppercase letter.","Must include at least one special character.", "Must include at least one special character.", "Must include at least one special character.","The length of the password must be equal to or greater than 8 characters.","Must not contain blank spaces.") Confirm your password and enter an email address.

Step2

After entering the data correctly, click on the "Register" button.

Step3

In login enter your username and password, click on the "Login" button.

Step4

After logging in you will see the home screen where you will see your user name and registration id, in this section you can log out, change your password, delete your account (delete your account and tasks), and create a new task.

Step5

In change password you can change your password and email if required.

Step6

In the store you can see the products, in this case three products, where you can see their image, title, description and price.

Step7

By clicking on each product you can see more detailed information and what quantity is required to add to the shopping cart or kart.

Step8

When you are in the shopping cart, the products that have been added to the shopping cart are displayed with all their information and total value.

Step9

In the operations you can edit and delete the product, in edit you can edit only the amount of product you need and save it with “Save changes” also you can cancel the edit with “Cancel Edit” and once edited the total value is changed.

for example the quantity of the product id 3 is to be edited by 2 quantities

Step10

Step11

Step12

Start the paypal payment process, paypal login is initiated

Step13

Complete the pay with the correct value

Step13

Steps to implement it

Go to paypal developer and login and go to "Apps & Credentials" and copy and paste your client ID y Secret

Step14

And for do the pay o buy with paypal , the testing go to "Testing Tools" in part Sanbox Accounts and copy the emial and login and put the password and you can do the the testing pay

Step15

For see the pays go to the Sanbox payl and login the acount sanbox personal or company


Fronted Nextjs Options for do it:

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Nodejs version v20.10.0 and Next.js version v14.2.3

First

npm install

run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Resolve : Error Nextjs Parsing error: Cannot find module 'next/babel'

Put this code in .eslintrc.json

{
  "extends": ["next/babel","next/core-web-vitals"]
}

nextjs-shopping-kart-paypal's People

Contributors

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