{"id":25564854,"url":"https://github.com/ashhad1200/ems","last_synced_at":"2026-02-11T06:03:09.251Z","repository":{"id":277340020,"uuid":"931997194","full_name":"Ashhad1200/EMS","owner":"Ashhad1200","description":"Event Management System (EMS) – A Full-Stack MERN Application","archived":false,"fork":false,"pushed_at":"2025-02-13T11:50:32.000Z","size":919,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T03:45:04.597Z","etag":null,"topics":["coreui","nodejs","react","react-router","reactqueryv5"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ashhad1200.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-13T07:38:20.000Z","updated_at":"2025-02-13T11:50:36.000Z","dependencies_parsed_at":"2025-02-19T05:15:59.756Z","dependency_job_id":null,"html_url":"https://github.com/Ashhad1200/EMS","commit_stats":null,"previous_names":["ashhad1200/ems"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ashhad1200/EMS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashhad1200%2FEMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashhad1200%2FEMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashhad1200%2FEMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashhad1200%2FEMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ashhad1200","download_url":"https://codeload.github.com/Ashhad1200/EMS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashhad1200%2FEMS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coreui","nodejs","react","react-router","reactqueryv5"],"created_at":"2025-02-20T21:59:46.884Z","updated_at":"2026-02-11T06:03:09.246Z","avatar_url":"https://github.com/Ashhad1200.png","language":"JavaScript","readme":"# MERN Project\n\n## Overview\n\nThis repository showcases a full-stack web application built with the **MERN** stack, which includes:\n- **MongoDB**: For database management.\n- **Express.js**: As the server-side framework.\n- **React.js**: For building a responsive and dynamic front-end.\n- **Node.js**: For backend runtime.\n\nAdditionally, it leverages **React Query** to manage server state efficiently and improve data fetching and caching.\n\n## Features\n- User authentication and authorization.\n- CRUD operations.\n- Efficient server-state management using React Query.\n- Responsive design with React.\n- RESTful APIs for seamless client-server communication.\n- Scalable and maintainable project structure.\n\n## Prerequisites\n- **Node.js** and **npm** installed.\n- MongoDB installed locally or an active MongoDB Atlas cluster.\n\n## Getting Started\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Ashhad1200/MERN.git\n   cd MERN\n   ```\n\n2. Install dependencies for both backend and frontend:\n   ```bash\n   cd backend\n   npm install\n   cd ../frontend\n   npm install\n   ```\n\n3. Configure environment variables:\n   - Create a `.env` file in the `backend` folder.\n   - Add the following variables:\n     ```\n     MONGO_URI=\u003cyour-mongodb-uri\u003e\n     JWT_SECRET=\u003cyour-jwt-secret\u003e\n     PORT=\u003cdesired-port\u003e\n     ```\n\n4. Run the application:\n   - Start the backend server:\n     ```bash\n     cd backend\n     npm run start\n     ```\n   - Start the frontend development server:\n     ```bash\n     cd frontend\n     npm run dev\n     ```\n\n5. Access the application:\n   Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Folder Structure\n- **backend/**: Contains the server-side code with routes, models, and controllers.\n- **frontend/**: Contains React components, hooks, React Query integration, and styling for the client-side.\n\n## Technologies Used\n- **Frontend**: React, React Query, Axios\n- **Backend**: Node.js, Express\n- **Database**: MongoDB\n- **Authentication**: JSON Web Tokens (JWT)\n- **Styling**: [Mention your styling tools if used, e.g., Bootstrap, TailwindCSS]\n\n## Using React Query\nThe project integrates **React Query** for:\n- Data fetching with automatic caching.\n- Server state synchronization.\n- Smooth UI updates with background refetching.\n\nKey hooks used:\n- `useQuery` for fetching data.\n- `useMutation` for submitting data changes.\n\n### Example (Frontend Code Snippet)\n```jsx\nimport { useQuery } from 'react-query';\nimport axios from 'axios';\n\nconst fetchData = async () =\u003e {\n  const { data } = await axios.get('/api/resource');\n  return data;\n};\n\nconst MyComponent = () =\u003e {\n  const { data, isLoading, error } = useQuery('resourceKey', fetchData);\n\n  if (isLoading) return \u003cp\u003eLoading...\u003c/p\u003e;\n  if (error) return \u003cp\u003eError fetching data\u003c/p\u003e;\n\n  return \u003cdiv\u003e{JSON.stringify(data)}\u003c/div\u003e;\n};\n```\n\n## Contributing\nContributions are welcome! To contribute:\n1. Fork this repository.\n2. Create a feature branch: `git checkout -b feature-name`.\n3. Commit your changes: `git commit -m 'Add feature-name'`.\n4. Push to the branch: `git push origin feature-name`.\n5. Open a pull request.\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashhad1200%2Fems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashhad1200%2Fems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashhad1200%2Fems/lists"}