Git Product home page Git Product logo

art-santos / polkadot-ecommerce Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.59 MB

A functional ecommerce consuming store api. You can pay using Dots/KSM. It's integrated with coingecko, so you can see all the prices converted to the live price of the coins. It uses polkadot.js, Chakra and Next.js for SSR and SEO and SWR.

Home Page: https://polkadot-ecommerce.arthursantos.codes

License: MIT License

TypeScript 98.57% JavaScript 1.16% CSS 0.26%
chakra-ui context-api nextjs polkadot polkadot-blockchain polkadot-development polkadot-js polkadot-network reactjs typescript

polkadot-ecommerce's Introduction

Polkadot Ecommerce

Consuming Fake Store Api https://fakestoreapi.com/ I've designed and created a functional ecommerce that uses Polkadot.js to receive and send payments. All The prices received from the api are converted to the real coin prices using coingecko API. https://www.coingecko.com/en/api. The store also uses server side rendering for better SEO performance. Altough, the state managment still needs to be updated and the component organization still needs to be improved. If you want to see how i usually organize my components and state managment please take a look at https://github.com/art-santos/redux-clean-code-todo or https://github.com/art-santos/canva.

STACK

  • NextJS
  • TypeScript
  • React
  • Chakra
  • Emotion Cache
  • SWR
  • Cookies
  • Chakra UI

How it works

It's a very basic ecommerce application. My main focus was to complete all your requirements. They were:

  • The user can see the product details.
  • The user can see the price converted in KSM/Dots
  • When the user clicks on the buy button a checkout page
  • The user can see details about the product
  • The user can fill a form and pay for the product after it
  • The application uses Polkadot.js to send transactions to the store owner accounts
  • The application interacts with fake store api
  • The application converts Dolar to Token prices using coingecko API
  • The application has a working search bar
  • The user can select the account he wants to pay with
  • The user can select a chain where he did want to send the transaction
  • The application is live on https://polkadot-ecommerce.arthursantos.codes/

polkadot-ecommerce's People

Contributors

art-santos avatar

Stargazers

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