{"id":18071429,"url":"https://github.com/nikrb/auth-react-base","last_synced_at":"2025-10-14T00:09:08.207Z","repository":{"id":119104900,"uuid":"99742722","full_name":"nikrb/auth-react-base","owner":"nikrb","description":"base for creating project that have auth using react and passport","archived":false,"fork":false,"pushed_at":"2017-09-29T13:17:05.000Z","size":119,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T07:38:25.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nikrb.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-08-08T22:50:17.000Z","updated_at":"2017-08-08T22:50:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c585d7d-fedd-45b1-8ae1-746bd61cbbc2","html_url":"https://github.com/nikrb/auth-react-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikrb/auth-react-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Fauth-react-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Fauth-react-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Fauth-react-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Fauth-react-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikrb","download_url":"https://codeload.github.com/nikrb/auth-react-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Fauth-react-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017381,"owners_count":26086052,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-10-31T09:15:11.501Z","updated_at":"2025-10-14T00:09:08.199Z","avatar_url":"https://github.com/nikrb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"create a base for react authentication. [demo](https://knik-auth-react-base.herokuapp.com/)\n\n* node.js\n* react.js\n* react-router-dom (react-router v4)\n* mongodb \u0026 mongoose\n* passport.js (passport-local)\n\nThis project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).\n\nFollowing vlad's authentication [blog](https://vladimirponomarev.com/blog/authentication-in-react-apps-jwt)\n\nHeroku deployment taken from mars [demo](https://github.com/mars/heroku-cra-node)\nwith an updated version to show mongodb and websocket connection [here](https://github.com/nikrb/heroku-cra-node)\n\n# setup\n\n### install mongo\nunixy:\n```sudo apt-get install mongodb-org```\n\n## development\n1. clone repo\n2. create .env file, e.g.\n```\ndbUri=mongodb://localhost:27017/testdb\njwtSecret=somesecretphrase\n```\n2. npm install (top level and client dirs)\n3. startup mongo\n4. npm run start-dev\n\n\n## Deploy to Heroku\n\nCreate a new mongodb on mLab.\n\nAfter creating the heroku app (```heroku create```) setup the environment using\nthe heroku dashboard.\n\n```bash\ngit clone https://github.com/nikrb/auth-react-base.git\ncd auth-react-base/\nheroku create\ngit push heroku master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikrb%2Fauth-react-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikrb%2Fauth-react-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikrb%2Fauth-react-base/lists"}