Skip to content

Sedox-dev/Veloce-Web3-Fullstack-Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Next.js + Nest.js + Solidity Full-Stack Web3.0 Shop 2024

Technology Stack

Client

  • ▶️ Next.js
  • 🌟 Framer-motion
  • ✨ React-hook-form
  • ⚡️ Recoil
  • 🔍 Axios
  • 💎 Zod

Server

  • 😸 Nest.js
  • 🔑 JWT
  • 💾 MongoDB
  • 📣 Mongoose

Blockchain

  • 🏦 Solidity
  • 💱 Ethers.js (v6+)
  • 👷 Hardhat

Testing

  • ✅ Cypress

Site Functional

  • Purchase of goods
  • Give a product a rating/comment
  • Delete your comment/rating
  • Add products to your favorite list
  • Remove products from your likes list
  • Select product configuration
  • Search products by filters
  • Search products by filters: gender, color, size, collections
  • Filter product feed by date, price
  • Load products when scrolling
  • Registration, authorization
  • Changing, filling out the profile with personal data for automatic loading when paying
  • (Admin) Add new products
  • View/delete added items to cart
  • Use promotional codes
  • Payment for products using a smart contract
  • Payment upon receipt by mail
  • View 6 newest products
  • (Admin) View, interact with products delivery

Pages

Home page

Shop page

Product page

Profile page

Pay page

Getting Started

You can just fork or clone this repository and use it as is.

✨ It just works. ✨

Step 1 Start Let's start by installing dependencies using the command

npm i

Now let's start the client, server

// client
cd client
npm run dev

// server
cd server
npm run start:dev

// hardhat
cd client
npx hardhat node

You can see that after the command "npx hardhat node" you have a JSON-RPC url displayed, copy it, we will need it soon

Step 2 MetaMask

install the extension for your browser by clicking HERE

Now register with MetaMask

After installation, an extension with the MetaMask logo should appear in the upper right corner of your browser, click on it and follow the actions on the cards

Now let's get a test currency

Copy any private key

Everything is ready, our balance is 10,000 ETH

Config

Create a .env file on the server and add 2 variable names to it whose names must be strictly observed

DB_LINK = //Your link to mongoDB
JWT_SECRET_KEY = // Any key, for example 123456 (Do not use for real projects because it is very simple, use a password generator)

About

Coursework on the topic Web3.0, Veloce online store which separates 2 payment approaches to improve user convenience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors