Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completed #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions backend/config/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PORT = 5000
DB_LINK ="mongodb+srv://faizyabahmad112233:[email protected]/"
NODE_ENV = production
JWT_SECRET = <jwt-secret-key>
JWT_EXPIRE = 5d
COOKIE_EXPIRE = 5
SMTP_HOST=smtp.gmail.com
SMTP_PORT=465
SMTP_SERVICE = gmail
SMTP_MAIL = <smtp-email>
SMTP_PASSWORD = <smtp-password>
SMTP_PASS = <smtp-password>
CLOUDINARY_NAME = deibibtbo
API_KEY = 261417549335778
API_SECRET = 5tnv3JqacDzSD0HrVDkg3QTH7Os
CLOUDINARY_URL=cloudinary://261417549335778:5tnv3JqacDzSD0HrVDkg3QTH7Os@deibibtbo
FRONTEND_URL = http://localhost:3000
STRIPE_API_KEY = <stripe-api-key>
STRIPE_SECRET_KEY = <stripe-secret-key>

4 changes: 2 additions & 2 deletions frotend/src/component/DisplayMoney/DisplayMoney.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// dispaly Money In indian Formate
export const dispalyMoney = function(num) {
const numFormate = new Intl.NumberFormat("en-IN", {
const numFormate = new Intl.NumberFormat("en-PK", {
style: "currency",
currency: "INR",
currency: "PKR",
});

const arr = numFormate.format(num).split(".", 1);
Expand Down