Skip to content
프로젝트

소개

React, Node.js, Express, MongoDB, JWT, Tailwind CSS를 사용한 결제 게이트웨이 지원 풀功能 MERN 스택 전자상거래 플랫폼

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
-1
in 1 month
-2

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Hayroo Project Demo

Alt text

🎥 Learn FullStack Development by building a LMS With React, NodeJs, PostgreSQL, Redis & Deployment -> Watch here:

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

NPM / Yarn and Node.js installed

.env

In the server > .env file, you can find some information. Please use your own API key for future use, as this key may not work in the future.

BRAINTREE_MERCHANT_ID=your_id
BRAINTREE_PUBLIC_KEY=your_public_key
BRAINTREE_PRIVATE_KEY=your_private_key

🔑 Getting Braintree API Keys

To enable payment functionality, you need to configure your own Braintree API credentials.

Steps to get your Braintree API keys

  1. Go to the official Braintree website: https://www.braintreepayments.com/

  2. Create a free Sandbox account at https://sandbox.braintreegateway.com/

  3. After logging in, navigate to:
    Account → Settings → API → API Keys

  4. Click “Generate New API Key” if none exists.

  5. Copy your credentials:

    • Merchant ID
    • Public Key
    • Private Key
  6. Add them to your .env file (inside the server folder):

    BRAINTREE_MERCHANT_ID=your_merchant_id_here
    BRAINTREE_PUBLIC_KEY=your_public_key_here
    BRAINTREE_PRIVATE_KEY=your_private_key_here
    

Installing

Installing NPM modules on both client and server folders

Execute these commands from the project directory

cd client && npm install
cd server && npm install

Running the app

Open a terminal on server directory

npm run start:dev

and open another terminal on client directory

npm run start

Access the web app at http://localhost:3000/

Deploying the backend server to render

Follow these setps 👇👇

  1. Create your render account in https://render.com/

  2. Connect your github to render and give the project permission for that

  3. Then create a new Web Service and add your repo (your repo must be look like this repo's folder structure like frontend and backend both in that repo)

  4. For deploying this, every change will be in this render-deploy-backend branch. So don't change your .evn from master branch.

  5. You have to change your database to local to mongodb atlas. Because in this deployment we are not creating db server. So we will be using mongo atlas url. So find your mongodb cloud url with database which will look like this: mongodb+srv://myusername:[email protected]/ecommerce?retryWrites=true&w=majority and goto the render-deploy-backend branch and goto .env file and replace the first variable to your latest mongodb cloud url like this: DATABASE=mongodb+srv://myusername:[email protected]/ecommerce?retryWrites=true&w=majority Don't just put this url. Your url will be different. You will find it in your mongo cluster setting. The old variable will be like this: DATABASE=mongodb://127.0.0.1:27017/ecommerce and your new one should look like this: DATABASE=mongodb+srv://myusername:[email protected]/ecommerce?retryWrites=true&w=majority you can find the mongo url by goto the mongodb atlas website and goto your database and you can find a connect button and click on that you will see the url. And modify the url quite like my one with your secret info. N.B: And you must need to provide the cluster password not your account password! So find your cluster password from database access menu in mongodb atlast cloud and change accoding to you. Here I provide all image's that you can undarstand better Alt Text Alt Text Alt Text

  6. Then come to render website. Give all of the imformations I set in the image below just change the name of your project and then must be change the branch name to master to render-deploy-backend

  7. This is the setup for render Alt Text

  8. After all the setup you finished create the web service and It will deploy the project.

You can deploy frontend into vercel or netlify also. Thanks

Build with 💛 by Hasan

관련 프로젝트 살펴보기

불러오는 중…