{"id":14957114,"url":"https://github.com/rugvedb/mern-boilerplate","last_synced_at":"2025-05-02T08:30:45.468Z","repository":{"id":112512453,"uuid":"272252789","full_name":"RugvedB/MERN-Boilerplate","owner":"RugvedB","description":"MERN stack boilerplate with store implemented using useReducer + useContext api","archived":false,"fork":false,"pushed_at":"2020-06-19T16:50:01.000Z","size":2367,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T00:07:46.677Z","etag":null,"topics":["authentication","boilerplate","higher-order-component","jsonwebtoken","mongodb","node-js","nodejs","react-hooks","react-js","store","usecontext","usereducer"],"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/RugvedB.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":"2020-06-14T17:40:30.000Z","updated_at":"2022-11-14T23:00:17.000Z","dependencies_parsed_at":"2023-05-15T11:45:36.586Z","dependency_job_id":null,"html_url":"https://github.com/RugvedB/MERN-Boilerplate","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"c32019ac2eaa038a5d5d5b0ef5114448c0ee1763"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RugvedB%2FMERN-Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RugvedB%2FMERN-Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RugvedB%2FMERN-Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RugvedB%2FMERN-Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RugvedB","download_url":"https://codeload.github.com/RugvedB/MERN-Boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252008711,"owners_count":21679626,"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":["authentication","boilerplate","higher-order-component","jsonwebtoken","mongodb","node-js","nodejs","react-hooks","react-js","store","usecontext","usereducer"],"created_at":"2024-09-24T13:14:06.113Z","updated_at":"2025-05-02T08:30:44.088Z","avatar_url":"https://github.com/RugvedB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align = 'center'\u003e MERN-Boilerplate \u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![](https://img.shields.io/badge/Made_with-Nodejs-green?style=for-the-badge\u0026logo=node.js)](https://nodejs.org/en/)\n[![](https://img.shields.io/badge/Made_with-ReactJS-blue?style=for-the-badge\u0026logo=react)](https://reactjs.org/docs/getting-started.html)\n[![](https://img.shields.io/badge/Database-MongoDB-red?style=for-the-badge\u0026logo=mongodb)](mongodb.com \"MongoDB\")\n\n\u003c/div\u003e\n\n### Features\n\n- This boilerplate contains react hooks components, higher order components ,mail verification (sign up ,password reset) ,login ,sample secured and open routes.\n- No user with non existing mail id will have access to secured routes.\n- No need to use complex redux boiler plate for creating store.\n- Store is implemented using \u003cstrong\u003euseRedux + useContext\u003c/strong\u003e. \n- Ready to use for any MERN stack project.\n- Responsive.\n- Error handled with proper actions(Eg redirect to login page when trying to access authenticated pages).\n\n------------------------------------------\n### Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src =\"./MERN-boilerplate.gif\" width = \"80%\"\u003e\n\u003c/p\u003e\n\n------------------------------------------\n###             Tech stack\n`Backend` : NodeJS\u003cbr\u003e\n`Database` : MongoDB\u003cbr\u003e\n`Frontend` : ReactJS \u003cbr\u003e\n\n------------------------------------------\n### Installation\n\nClone the repository and install node modules\n```\ngit clone https://github.com/RugvedB/MERN-Boilerplate.git\ncd MERN-Boilerplate/\ncd client\nnpm i\ncd ../backend\nnpm i\n```\nNow create  .env file\n```\ntouch .env\n```\n\nFill .env with relevant information as follows\n```\nPORT=8000\nmongoURI= ENTER YOUR MONGOURI HERE\nserver_base_url=http://localhost:8000\nmail_id= ENTER YOUR MAIL ID FROM WHICH VERIFICATION,PASSWORD RESET MAIL WILL BE SENT.\nmail_pass= ENTER PASSWORD OF YOUR MAIL ID\nSECRET_KEY= somerandomcomplexstring\n```\n\nNow we can start the backend server by using the following command\n```\nnode index.js \n```\n\nTo start frontend server go to root directory and follow the steps(on a new terminal)\n```\ncd client\nnpm start\n```\n\nCheckout the site on \u003ca href=\"http://localhost:3000/register\"\u003ehttp://localhost:3000/register\u003c/a\u003e\n\n\n------------------------------------------\n\u003ch3 align=\"center\"\u003e\u003cb\u003eDeveloped with :heart: by \u003ca href=\"https://github.com/rugvedb\"\u003eRugved\u003c/a\u003e\u003c/h1\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frugvedb%2Fmern-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frugvedb%2Fmern-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frugvedb%2Fmern-boilerplate/lists"}