{"id":18071287,"url":"https://github.com/nikrb/learn2react","last_synced_at":"2025-10-10T18:39:30.493Z","repository":{"id":119105263,"uuid":"66150878","full_name":"nikrb/learn2react","owner":"nikrb","description":"following will stern's react tutorial from code academy. see the branches for the different you tube vids","archived":false,"fork":false,"pushed_at":"2016-09-16T17:25:12.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:29:59.986Z","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":"2016-08-20T14:26:50.000Z","updated_at":"2016-08-20T14:27:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a6c0862-98cd-4998-8ce8-02b763907103","html_url":"https://github.com/nikrb/learn2react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikrb/learn2react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Flearn2react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Flearn2react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Flearn2react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Flearn2react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikrb","download_url":"https://codeload.github.com/nikrb/learn2react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikrb%2Flearn2react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004914,"owners_count":26083803,"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-10T02:00:06.843Z","response_time":62,"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:14:45.796Z","updated_at":"2025-10-10T18:39:30.488Z","avatar_url":"https://github.com/nikrb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"working through learncode.academy \"react JS tutorial\" on youtube.\n\ncheckout the different branches, the names roughly match the videos.\n\nstarting with my finally cobbled together server with backend to mongo.\n\nTo start:\n\n1. get mongo running\n2. run the server (nodemon to update on change)\n   unixy: npm run start-api\n   dos  : npm run dos-start\n3. run webpack to watch for front end changes\n   webpack --watch\n\n`Will` uses class instead of react className. This is useful (for him) as he wanted\nto copy his html en-masse without having to rename all the class attribs to className.\nThis is done by using the react-html-attrs package in webpack.config.js:\n```\nmodule.exports = {\n  // ...\n  module : {\n    loaders : [\n      {\n        // ...\n        query: {\n          presets: ['react', 'es2015', 'stage-0'],\n          plugins: ['react-html-attrs', 'transform-class-properties',\n                                            'transform-decorators-legacy'],\n        }\n      }\n    ]\n  }\n  // ...\n}\n```\n\nOn the way here ...\ntrying to run backend api with webpack\nfinding process:\nlsof -i tcp:$PORT\n\nreact getting started:\nhttps://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Setting-Up-A-React-ES6-Webpack-Project\n\nrunning webpack for react from cloud9:\n```\nwebpack-dev-server --port $PORT --host $IP  --content-base dist/\n```\n\n*note $port and $ip seem to be already defined in workspace.*\n\nreact sass template.\n\npoint browser at:\nhttps://react-sass-template-knik.c9users.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikrb%2Flearn2react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikrb%2Flearn2react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikrb%2Flearn2react/lists"}