These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
NPM / Yarn and Node.js installed
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
To enable payment functionality, you need to configure your own Braintree API credentials.
-
Go to the official Braintree website: https://www.braintreepayments.com/
-
Create a free Sandbox account at https://sandbox.braintreegateway.com/
-
After logging in, navigate to:
Account → Settings → API → API Keys -
Click “Generate New API Key” if none exists.
-
Copy your credentials:
- Merchant ID
- Public Key
- Private Key
-
Add them to your
.envfile (inside theserverfolder):BRAINTREE_MERCHANT_ID=your_merchant_id_here BRAINTREE_PUBLIC_KEY=your_public_key_here BRAINTREE_PRIVATE_KEY=your_private_key_here
Installing NPM modules on both client and server folders
Execute these commands from the project directory
cd client && npm install
cd server && npm install
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/
- 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