diff --git a/.github/workflows/close-old-issue.yml b/.github/workflows/close-old-issue.yml
deleted file mode 100644
index 67b04051..00000000
--- a/.github/workflows/close-old-issue.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-name: Auto Close Inactive Issues
-
-on:
- schedule:
- # Run the job once a day at midnight
- - cron: '0 0 * * *'
-
-jobs:
- close_inactive_issues:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
-
- - name: Close inactive issues
- uses: actions/github-script@v6
- with:
- script: |
- const now = new Date();
- const daysToClose = 3; // Close issues after 3 days of inactivity
-
- const issues = await github.paginate(github.issues.listForRepo, {
- owner: context.repo.owner,
- repo: context.repo.repo,
- state: "open",
- });
-
- for (const issue of issues) {
- const lastUpdated = new Date(issue.updated_at);
- const daysSinceUpdate = (now - lastUpdated) / (1000 * 60 * 60 * 24);
-
- if (daysSinceUpdate >= daysToClose) {
- await github.issues.update({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue.number,
- state: "closed"
- });
- console.log(`Closed inactive issue #${issue.number}, inactive for ${daysSinceUpdate.toFixed(1)} days.`);
- }
- }
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index 7cf49ac4..2351d266 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -1,145 +1,53 @@
-# ✨Contributor Covenant Code of Conduct✨
+
----
+# Code of Conduct
-## 🌟Our Pledge
----
-We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
+
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
+## Our Pledge
----
-## 🚦Our Standards
+We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
-Examples of behavior that contributes to a positive environment for our
-community include:
+## Our Standards
-* 💖Demonstrating empathy and kindness toward other people
-* 🤝Being respectful of differing opinions, viewpoints, and experiences
-* 📝Giving and gracefully accepting constructive feedback
-* 🌱Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-* 🎯Focusing on what is best not just for us as individuals, but for the
- overall community
+Examples of behavior that contributes to creating a positive environment include:
-Examples of unacceptable behavior include:
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
-* 🚫The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-* 🛑Trolling, insulting or derogatory comments, and personal or political attacks
-* ⚠️Public or private harassment
-* 🔒Publishing others' private information, such as a physical or email
- address, without their explicit permission
-* ❌Other conduct which could reasonably be considered inappropriate in a
- professional setting
+Examples of unacceptable behavior by participants include:
----
+- The use of sexualized language or imagery and unwelcome sexual attention or advances
+- Trolling, insulting or derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a professional setting
-## 👨⚖️Enforcement Responsibilities
+## Our Responsibilities
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
+Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
+Maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that do not align with this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project.
----
-## 🌐Scope
+## Scope
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official e-mail address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
+This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
----
-## 📋Pull Request Guidelines
+## Enforcement
-Contributions, including pull requests, must align with this Code of Conduct.
-All contributors are expected to submit work that fosters a positive and inclusive community.
-Inappropriate behavior, language, or content in pull requests may result in the rejection of
-the contribution and further enforcement actions as outlined in the guidelines.
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project owner. All complaints will be reviewed and investigated promptly and fairly. All project team members are obligated to respect the privacy and security of the reporter of any incident.
----
-## 🛡️Enforcement
+Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-.
-All complaints will be reviewed and investigated promptly and fairly.
+You can also tag the admin, if you find anything voilating the Code of Conduct.
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
+## Attribution
----
-## 📖Enforcement Guidelines
+This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
+Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
-### 1. ✏️Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. ⚠️Warning
-
-**Community Impact**: A violation through a single incident or series
-of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or
-permanent ban.
-
-### 3. ⏳Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. 🚫Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within
-the community.
-
----
-## 📜Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available at
-https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
-
-Community Impact Guidelines were inspired by [Mozilla's code of conduct
-enforcement ladder](https://github.com/mozilla/diversity).
-
-[homepage]: https://www.contributor-covenant.org
-
-For answers to common questions about this code of conduct, see the FAQ at
-https://www.contributor-covenant.org/faq. Translations are available at
-https://www.contributor-covenant.org/translations.
+For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
diff --git a/README.md b/README.md
index 7b045cc0..cf249873 100644
--- a/README.md
+++ b/README.md
@@ -121,6 +121,51 @@ The PlayCafe website communicates with a backend API to manage data. Here’s a
| GET | `/api/bookings/:id` | Retrieves details of a specific booking by ID. |
| DELETE | `/api/bookings/:id` | Cancels a specific booking by ID. |
+## Troubleshooting
+
+If you encounter issues while setting up or using the PlayCafe website, here are some common problems and solutions:
+
+### 1. Issue: Unable to install dependencies
+**Solution:** Make sure that you have Node.js installed. Run `npm install` again after confirming the Node.js installation.
+
+### 2. Issue: Website not starting
+**Solution:** Run `npm start` and ensure that the correct port is open. If the error persists, check for any error logs in the terminal and ensure no other applications are using the same port.
+
+### 3. Issue: Database connection error
+**Solution:** Verify that your database is running, and the connection details (host, username, password) are correct in the `.env` file.
+
+### 4. Issue: CSS/JavaScript not loading properly
+**Solution:** Check if all static assets are being served correctly. Ensure that the paths to your CSS and JS files are correct and that they are being compiled if you're using a build tool like Webpack or Gulp.
+
+### 5. Issue: CORS (Cross-Origin Resource Sharing) error
+**Solution:** Ensure the backend server has appropriate CORS policies configured to allow the frontend to communicate with it. If you're working with APIs, make sure that the necessary headers are included in server responses.
+
+### 6. Issue: Environment variables not working
+**Solution:** Double-check the `.env` file configuration. Ensure that all required variables are defined and that the file is correctly loaded by your server or build system.
+
+### Debugging Tips
+- Use `console.log` statements to track the flow of the code.
+- Check browser developer tools for any front-end errors.
+- Look into server logs for detailed error messages.
+- **Use Logging Libraries:** Incorporate logging libraries like `winston` or `morgan` for better server-side error tracking.
+- **Check Permissions:** If you're running the server on a remote machine, ensure that you have the necessary permissions (e.g., read/write access to necessary directories).
+- **API Testing:** Use tools like Postman or Insomnia to test API endpoints individually if issues arise in data fetching.
+- **Browser DevTools:** Use Chrome DevTools (F12) or Firefox Developer Tools (F12) for debugging.
+- **React DevTools:** Install React Developer Tools browser extension for component debugging.
+- **Network Tab:** Monitor API calls and responses in the Network tab.
+- **Console Patterns:** Use `console.table()` for debugging arrays and objects.
+
+### Resources
+- [Node.js Documentation](https://nodejs.org/en/docs/)
+- [Express.js Guide](https://expressjs.com/en/starter/installing.html)
+- [Common npm errors](https://docs.npmjs.com/common-errors)
+- [How to Debug JavaScript Errors](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong)
+- [Troubleshooting Common CORS Issues](https://www.codecademy.com/articles/what-is-cors)
+- [Webpack Documentation](https://webpack.js.org/concepts/)
+- [React DevTools Guide](https://react.dev/learn/react-developer-tools)
+- [React Error Boundaries](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary)
+- [React Performance Optimization](https://react.dev/learn/render-and-commit)
+
## 🤝 Contributing
We love contributions! 💙 Whether you're a participant in **GSSoC** or an open-source enthusiast, we welcome your input. Here's how you can contribute:
@@ -214,6 +259,20 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
Arindam
+