{"id":15604411,"url":"https://github.com/mohnish/nike","last_synced_at":"2026-01-19T06:32:25.059Z","repository":{"id":143229127,"uuid":"8240324","full_name":"mohnish/nike","owner":"mohnish","description":"A minimal Todo list RESTful API powered by NodeJS, Express, Redis. Supports CORS","archived":false,"fork":false,"pushed_at":"2015-05-05T23:38:51.000Z","size":218,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:31:05.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohnish.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}},"created_at":"2013-02-16T19:19:20.000Z","updated_at":"2017-04-09T18:48:42.000Z","dependencies_parsed_at":"2023-03-17T06:15:41.475Z","dependency_job_id":null,"html_url":"https://github.com/mohnish/nike","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohnish/nike","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohnish%2Fnike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohnish%2Fnike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohnish%2Fnike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohnish%2Fnike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohnish","download_url":"https://codeload.github.com/mohnish/nike/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohnish%2Fnike/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-03T03:41:20.685Z","updated_at":"2026-01-19T06:32:25.037Z","avatar_url":"https://github.com/mohnish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Nike\n\nNike is a todo list API for users to consume and build your own client or use the default client.\n\n## API\n\nNike has a RESTful API that supports CRUD operations on users and their todos.\n\n### TODO\n\n- Retrieve all the user's todos: `GET /users/:userId/todos`.\n\n- Retrieve a single todo: `GET /users/:userId/todos/:todoId`.\n\n- Create a todo: `POST /users/:userId/todos`.\n- Allowed params: `content`, `status`.\n- Request payload: `{content: 'your todo content', status: 'whatever your client uses'}`.\n\n- Update a todo: `PATCH /users/:userId/todos/:todoId`.\n- Allowed params: `status`, `content`.\n- Request payload: `{status: 'your updated status', content: 'your updated content'}`.\n\n- Delete a todo: `DELETE /users/:userId/todos/:todoId`.\n\n### USER\n\n- Create a user: `POST /users/`.\n- Allowed params: `name`, `id`.\n- Request payload: `{name: 'your name', id: 'yourusername'}`.\n\n- Update a user: `PATCH /users/:userId`.\n- Allowed params: `name`.\n- Request payload: `{name: 'your corrected name'}`.\n\n- Retrieve a user (and a list of the user's todos): `GET /users/:userId`.\n\n- Delete a user (Not yet implemented): `DELETE /users/:userId`.\n\n## Stack\n\n### Server\n-  NodeJS (:heart:)\n- Express (:heart:)\n- Redis (:heart:)\n\n### Client\n- Implement it the way you want. The client is just a UI to interact with the server. You can either use the one I wrote or if you think you can write a better one, go for it.\n- The default client that ships with the code is written using AngularJS.\n- You can use EmberJS or Knockout or even plain old jQuery to implement your client.\n- The reason the `Todo` object has a status and not a `done` (true|false) attribute is to allow the client developers to have the freedom to use the todos the way they want to. Since `status` is a string, it can have whatever values you want. For example, `status` can be used to\n\n## Development\n\n- Clone the repo to your machine - `git clone git@github.com:mohnish/nike.git /path/to/nike`.\n- Change to the clone's directory - `cd /path/to/nike`.\n- Install the dependencies - `npm install`.\n- Fire up redis - `redis-server`.\n- Start the server: `npm start`.\n- If you want to use `node-dev`, use `make serve` instead of `npm start`. This is recommended for `development` environment (removes the hasstle of restarting the server each time there's a change in code).\n- For debugging, use `make debug`.\n\n## Tests\n\n- To run the test suite (from your app root) - `make test` or just `make`.\n- To \"watch\" the tests while you write new tests - `make watch`.\n\nCode contribution is always welcome.\n\nKnown Issues: Most of the tests are dependent on the existing data, which should not be the case. Need to update the tests to remove existing data dependencies.\n\n## LICENSE\n\n(The MIT License)\n\nCopyright (c) 2015 Mohnish Thallavajhula \u0026lt;i@mohni.sh\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohnish%2Fnike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohnish%2Fnike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohnish%2Fnike/lists"}