{"id":16124166,"url":"https://github.com/itaditya/mern-demo","last_synced_at":"2025-08-17T14:08:26.241Z","repository":{"id":99907649,"uuid":"103004969","full_name":"itaditya/MERN-demo","owner":"itaditya","description":"A demo application for learning React with Nodejs and MongoDB","archived":false,"fork":false,"pushed_at":"2017-10-20T07:33:07.000Z","size":147,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T21:13:12.948Z","etag":null,"topics":["cookiestorage","express","heroku","heroku-cli","mongodb","mongoose","nodejs","passport","passport-google","react","react-router","sendgrid","sessions","stripe","stripe-api"],"latest_commit_sha":null,"homepage":"https://merndemo.herokuapp.com/","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/itaditya.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":"2017-09-10T05:04:20.000Z","updated_at":"2022-09-14T17:10:10.000Z","dependencies_parsed_at":"2023-05-11T00:30:26.251Z","dependency_job_id":null,"html_url":"https://github.com/itaditya/MERN-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itaditya/MERN-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2FMERN-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2FMERN-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2FMERN-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2FMERN-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaditya","download_url":"https://codeload.github.com/itaditya/MERN-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2FMERN-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856775,"owners_count":24657700,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cookiestorage","express","heroku","heroku-cli","mongodb","mongoose","nodejs","passport","passport-google","react","react-router","sendgrid","sessions","stripe","stripe-api"],"created_at":"2024-10-09T21:19:57.377Z","updated_at":"2025-08-17T14:08:26.218Z","avatar_url":"https://github.com/itaditya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## To Start Local Server - \n A. Setting Up the server - \n \n  1. Install heroku-cli\n  2. Install nodemon with `npm i -g nodemon`\n  3. Run `npm i` to install the server-side dependencies\n  4. Run `touch .env` then open it and fill it like the sample .env file.\n  5. Run `npm start` and make sure the mongo instance is also running.\n     \n B. Setting Up the client - \n \n  1. Run `cd client ` in separate terminal to change into client directory.\n  2. In client directory run `npm i` to install client-side dependencies.\n  3. In client directory run `touch .env` and fill `stripePubKey=pk_test_--------------` in it .\n  4. In client directory run `npm start `.\n  5. Navigate to localhost:3000 in the browser.\n \n## Sample .env file\n```\nNODE_ENV=development\nport=5000\ngoogleClientID=-------------.apps.googleusercontent.com\ngoogleClientSecret=--------------\nmongoURI=mongodb://localhost:27017/merndemodb\ncookieKey=---------------\nHOST_URL=http://localhost:5000\nstripePubKey=pk_test_--------------\nstripeSecretKey=sk_test_-------------\n```\n\n## Milestones \n 1. [x] Configure Express to work with React.js via Proxy.\n 2. [x] Google Oauth2.0 Api.\n 3. [x] Stripe payment Api.\n 4. [x] Setup production build to Heroku.\n 5. [x] Handle multiple env variables for both server and client.\n 6. [x] Use ES2017 syntax with async/await instead of promises.\n 7. [x] React with Redux architecture.\n 8. [x] Session Authentication with Passport.js and Cookies.\n 9. [x] Create Webhooks for Google and Stripe Apis.\n 10. [x] Database Management using MongoDB.\n\nNote - \n1. Heroku Cli is used for handling **environment variables** and deploys.\n2. To get **googleClientID** and **googleClientSecret** make a new project at [here](https://console.developers.google.com) and enable the Google+ api.\n3. To get **stripePubKey** and **stripeSecretKey** create account on [Stripe](http://stripe.com/).\n4. If you don't have **mongodb** locally, then create a remote db [here](https://mlab.com/home)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Fmern-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaditya%2Fmern-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Fmern-demo/lists"}