{"id":22127928,"url":"https://github.com/dmunasingha/wikipedia-clone","last_synced_at":"2026-05-05T22:39:36.995Z","repository":{"id":260472985,"uuid":"881399243","full_name":"dmunasingha/wikipedia-clone","owner":"dmunasingha","description":"This project is a simple Wikipedia-like application that leverages the Wikipedia API to allow users to search for articles and retrieve content dynamically. The frontend is built using React, and the backend is powered by Node.js and Express.","archived":false,"fork":false,"pushed_at":"2024-10-31T13:58:28.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T14:09:54.698Z","etag":null,"topics":["clone","expressjs","javascript","react","wikipedia-api"],"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/dmunasingha.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}},"created_at":"2024-10-31T13:53:07.000Z","updated_at":"2024-10-31T13:55:01.000Z","dependencies_parsed_at":"2024-10-31T14:39:46.913Z","dependency_job_id":"43db3b39-dae0-406f-8cbf-b047a970f29d","html_url":"https://github.com/dmunasingha/wikipedia-clone","commit_stats":null,"previous_names":["dmunasingha/wikipedia-clone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2Fwikipedia-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2Fwikipedia-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2Fwikipedia-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmunasingha%2Fwikipedia-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmunasingha","download_url":"https://codeload.github.com/dmunasingha/wikipedia-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245235715,"owners_count":20582293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clone","expressjs","javascript","react","wikipedia-api"],"created_at":"2024-12-01T17:22:31.640Z","updated_at":"2026-05-05T22:39:31.972Z","avatar_url":"https://github.com/dmunasingha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wikipedia Clone\n\n![License](https://img.shields.io/badge/license-MIT-green)\n![React](https://img.shields.io/badge/React-v18.0.0-blue)\n![Node.js](https://img.shields.io/badge/node.js-v16.0.0-green)\n![Express](https://img.shields.io/badge/Express-v4.17.1-blue)\n\n## 📖 Description\n\nThis project is a simple Wikipedia-like application that leverages the [Wikipedia API](https://www.mediawiki.org/wiki/API:Main_page) to allow users to search for articles and retrieve content dynamically. The frontend is built using **React**, and the backend is powered by **Node.js** and **Express**.\n\n## 🚀 Features\n\n- Search for articles using keywords.\n- Retrieve detailed content from selected articles.\n- Modular design for easy scalability and maintainability.\n- Responsive UI built with React.\n\n## 📦 Installation\n\n### Prerequisites\n\nMake sure you have **Node.js** installed on your machine. You can download it from [Node.js Official Site](https://nodejs.org/).\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/dmunasingha/wikipedia-clone.git\ncd wikipedia-clone\n```\n\n### Install Backend Dependencies\n\nNavigate to the backend folder and install the dependencies:\n\n```bash\ncd backend\nnpm install\n```\n\n### Install Frontend Dependencies\n\nNavigate to the frontend folder and install the dependencies:\n\n```bash\ncd frontend\nnpm install\n```\n\n## 🔧 Usage\n\n### Running the Server\n\nTo start the backend server, run the following command in the `backend` directory:\n\n```bash\ncd backend\nnode index.js\n```\n\nThe backend server will run at `http://localhost:5000`.\n\n### Running the Frontend\n\nTo start the frontend application, run the following command in the `frontend` directory:\n\n```bash\ncd frontend\nnpm start\n```\n\nThe frontend application will run at `http://localhost:3000`.\n\n### API Endpoints\n\n#### 1. Search Articles\n\n- **Endpoint:** `GET /api/search?query={search_query}`\n- **Description:** Search for articles related to the specified query.\n- **Example Request:**\n  \n  ```bash\n  curl 'http://localhost:5000/api/search?query=JavaScript'\n  ```\n\n- **Response:**\n  \n  ```json\n  [\n    {\n      \"pageid\": 12345,\n      \"ns\": 0,\n      \"title\": \"JavaScript\",\n      \"snippet\": \"JavaScript is a programming language...\"\n    },\n    ...\n  ]\n  ```\n\n#### 2. Get Article Content\n\n- **Endpoint:** `GET /api/article?title={article_title}`\n- **Description:** Retrieve the content of the specified article.\n- **Example Request:**\n\n  ```bash\n  curl 'http://localhost:5000/api/article?title=JavaScript'\n  ```\n\n- **Response:**\n  \n  ```json\n  {\n    \"pageid\": 12345,\n    \"title\": \"JavaScript\",\n    \"extract\": \"JavaScript is a programming language...\"\n  }\n  ```\n\n## 📖 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## 🙏 Acknowledgements\n\n- [Wikipedia API Documentation](https://www.mediawiki.org/wiki/API:Main_page)\n- [Express.js](https://expressjs.com/)\n- [Axios](https://axios-http.com/)\n- [React](https://reactjs.org/)\n\n## 📫 Contact\n\nFor any inquiries, feel free to reach out:\n\n- **Your Name**: [munasingha.dunith@gmail.com](mailto:munasingha.dunith@gmail.com)\n- **GitHub**: [dmunasingha](https://github.com/dmunasingha)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmunasingha%2Fwikipedia-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmunasingha%2Fwikipedia-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmunasingha%2Fwikipedia-clone/lists"}