{"id":26926498,"url":"https://github.com/pa4080/react-simple-task-manager","last_synced_at":"2026-04-29T23:31:12.440Z","repository":{"id":106350386,"uuid":"489579470","full_name":"pa4080/react-simple-task-manager","owner":"pa4080","description":"Simple JavaScript React (To-do) application, exercise of REST API.","archived":false,"fork":false,"pushed_at":"2022-06-19T10:59:21.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-19T08:08:55.296Z","etag":null,"topics":["express","expressjs","favascript","reactjs","rest-api"],"latest_commit_sha":null,"homepage":"https://stasks.metalevel.tech/github","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pa4080.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-07T05:37:20.000Z","updated_at":"2023-10-20T10:37:08.000Z","dependencies_parsed_at":"2023-09-06T12:45:35.088Z","dependency_job_id":null,"html_url":"https://github.com/pa4080/react-simple-task-manager","commit_stats":null,"previous_names":["pa4080/exc-js-simple-task-manager","pa4080/react-simple-task-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pa4080/react-simple-task-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa4080%2Freact-simple-task-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa4080%2Freact-simple-task-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa4080%2Freact-simple-task-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa4080%2Freact-simple-task-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pa4080","download_url":"https://codeload.github.com/pa4080/react-simple-task-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa4080%2Freact-simple-task-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["express","expressjs","favascript","reactjs","rest-api"],"created_at":"2025-04-02T03:32:23.598Z","updated_at":"2026-04-29T23:31:12.434Z","avatar_url":"https://github.com/pa4080.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Task Manager\n\nSimple JavaScript/React application - a homework project, and currently it is:\n\n* Exercise of REST API Requests\n\n* Node.js and Express\n\n* React.js\n\n## Development deploy and run\n\nStart the backend server. It is implementation of Express that provides Json-server. The Express server will run at `http://localhost:48004` and will provide the Json-server at `http://localhost:48004/api[/tasks]`.\n\n```bash\ncd server\nnpm install\nnpm run db-create\nnpm run supervisor\n```\n\nPush the running server as background process or open new terminal and start the React's dev server.\n\n```bash\ncd app\nnpm install\nnpm start\n```\n\nThe React's dev web server, by default, will run at `http://localhost:3000`. It will proxy all requests for non static resources to the Express server's port - check the `\"proxy\"` directive in [package.json](./app/package.json). So we can access the Json-server at `http://localhost:3000/api[/tasks]`.\n\n## Production build and run\n\nIn this case we need to build the React application. Then it will be served via the Express server. And everything will be accessible at `http://localhost:48004`.\n\n```bash\ncd app \u0026\u0026 npm i \u0026\u0026 npm run build\ncd -\ncd server \u0026\u0026 npm i \u0026\u0026 npm run db-create \u0026\u0026 npm start\n```\n\n*Read [CLI.md](./CLI.md) For more information.*\n\n## Json-server\n\nThe application [json-server](https://github.com/typicode/json-server) is used as backend database server. It is provided via Express.\n\n### Json-server references\n\n* Video Tutorial: [Creating demo APIs with json-server](https://egghead.io/lessons/javascript-creating-demo-apis-with-json-server)\n\n* Official docs: [json-server](https://github.com/typicode/json-server)\n\n* [Postman](https://www.postman.com/downloads/) - an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.\n\n* [`npm install package-name --save-dev` not updating `package.json`](https://stackoverflow.com/a/62706498/6543935)\n\n* [integrate json-server with express server](https://github.com/typicode/json-server/issues/253)\n\n### Json-server basic requests\n\n|Method |Path       |Action             |\n| ---   | ---       | ---               |\n|GET    |/tasks     |get all tasks      |\n|GET    |/tasks/id  |get Todo by id     |\n|POST   |/tasks     |add new Todo       |\n|PUT    |/tasks/id  |update Todo by id  |\n|DELETE |/tasks/id  |remove Todo by id  |\n\n### Q\u0026A\n\n**Q:** [Which is better](https://github.com/metalevel-tech/js-simple-task-manager/commit/55215199ae24c3d5d5526438469c0c6ebefe51ed#diff-6ea1aaf1b9c53ddae6d7edf1fa3ff1e34adb5a392fd2fa79e17d92b292e49c18)?\n\n**A:** The first variant is better in this case. At all we do not need Context for this simle task and the variant from the branch [ReactJsHooksSyntaxBeforeContext](https://github.com/metalevel-tech/js-simple-task-manager/tree/ReactJsHooksSyntaxBeforeContext) is just fine. But this is just an exercise so the Context example will be leaved here with the first variant according to the question.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpa4080%2Freact-simple-task-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpa4080%2Freact-simple-task-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpa4080%2Freact-simple-task-manager/lists"}