-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Akshatchaube01:main' into suhanipaliwal-patch-3
- Loading branch information
Showing
58 changed files
with
4,591 additions
and
439 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,3 @@ | ||
REACT_APP_SERVICE_ID=service_qfep0u4 | ||
REACT_APP_TEMPLATE_ID=template_te2r09e | ||
REACT_APP_PUBLIC_KEY=2L1ir1kGrUHNlXEjH |
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,22 @@ | ||
--- | ||
name: 📝 Documentation | ||
about: Propose changes and improvements to JobLane Docs. | ||
title: '📝[Docs]: ' | ||
labels: 'enhancement' | ||
assignees: '' | ||
--- | ||
|
||
**What Docs changes are you proposing?** | ||
Provide a clear description of the changes you're proposing for the documentation. Are you suggesting corrections, clarifications, additions, or updates? | ||
|
||
**Why do the Docs need this improvement? What is the motivation for this change? How will this change benefit the community?** | ||
Explain the motivation behind the proposed changes and how they will benefit the community or users of the documentation. | ||
|
||
**Describe the solution you'd like** | ||
Provide a clear and concise description of the changes you'd like to see implemented in the documentation. | ||
|
||
**Describe alternatives you've considered** | ||
If you've thought about alternative approaches or solutions, briefly describe them here. | ||
|
||
**Additional context** | ||
Add any additional context, examples, or screenshots related to the proposed documentation changes. |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
MONGODB_URI=mongodb+srv://ams:[email protected]/?retryWrites=true&w=majority&appName=Cluster0 | ||
PORT=5000 |
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,17 @@ | ||
const mongoose = require('mongoose'); | ||
require('dotenv').config(); | ||
|
||
const connectDB = async () => { | ||
try { | ||
await mongoose.connect(process.env.MONGODB_URI, { | ||
useNewUrlParser: true, | ||
useUnifiedTopology: true, | ||
}); | ||
console.log('MongoDB connected'); | ||
} catch (err) { | ||
console.error('MongoDB connection error:', err); | ||
process.exit(1); // Exit process with failure | ||
} | ||
}; | ||
|
||
module.exports = 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const mongoose = require('mongoose'); | ||
|
||
const contactSchema = new mongoose.Schema({ | ||
name: { type: String, required: true }, | ||
email: { type: String, required: true }, | ||
message: { type: String, required: true }, | ||
}); | ||
|
||
const Contact = mongoose.model('Contact', contactSchema); | ||
|
||
module.exports = Contact; |
Oops, something went wrong.