-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5464886
commit c7bb956
Showing
73 changed files
with
1,851 additions
and
1,845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist/*.js | ||
test.js | ||
frontend/dist/*.js | ||
frontend/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { v2 as cloudinary } from 'cloudinary' | ||
import { v2 as cloudinary } from "cloudinary"; | ||
|
||
export function cloudinaryConnect () { | ||
try { | ||
cloudinary.config({ | ||
cloud_name: process.env.CLOUDINARY_CLOUD_NAME, | ||
api_key: process.env.CLOUDINARY_API_KEY, | ||
api_secret: process.env.CLOUDINARY_API_SECRET, | ||
}) | ||
}); | ||
} catch (error) { | ||
console.log('Error in connecting to cloudinary: ' + error) | ||
console.log("Error in connecting to cloudinary: " + error); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import mongoose from 'mongoose' | ||
import mongoose from "mongoose"; | ||
|
||
const connectDB = async () => { | ||
try { | ||
await mongoose.connect(process.env.MONGODB_URL) | ||
console.log('\n MongoDB connected with ' + process.env.MONGODB_URL + '\n') | ||
await mongoose.connect(process.env.MONGODB_URL); | ||
console.log("\n MongoDB connected"); | ||
} catch (error) { | ||
console.log('MongoDB connection FAILED', error) | ||
process.exit(1) | ||
console.log("MongoDB connection FAILED", error); | ||
process.exit(1); | ||
} | ||
} | ||
}; | ||
|
||
export default connectDB | ||
export default connectDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Razorpay from 'razorpay' | ||
import Razorpay from "razorpay"; | ||
|
||
const instance = new Razorpay({ | ||
key_id: process.env.RAZORPAY_KEY_ID, | ||
key_secret: process.env.RAZORPAY_KEY_SECRET, | ||
}) | ||
}); | ||
|
||
export default instance | ||
export default instance; |
Oops, something went wrong.