{"id":14975567,"url":"https://github.com/jreimao/api-culinary-recipes","last_synced_at":"2025-10-27T14:30:27.079Z","repository":{"id":174765113,"uuid":"87750497","full_name":"jreimao/api-culinary-recipes","owner":"jreimao","description":"api restful foi desenhada para gerir 'receitas de culinária' e os seus utilizadores | api restful is designed to manage 'culinary recipes' and their users","archived":false,"fork":false,"pushed_at":"2017-04-22T22:31:24.000Z","size":29,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T05:51:08.951Z","etag":null,"topics":["bcrypt","conemu","expressjs","jwt","mongodb","mongoosejs","node-js","nodemon","postman","sublime-text-3","windows-10"],"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/jreimao.png","metadata":{"files":{"readme":"README-en.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-10T00:45:15.000Z","updated_at":"2023-11-25T11:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee4519e8-e759-43c9-8323-11cc7206a434","html_url":"https://github.com/jreimao/api-culinary-recipes","commit_stats":null,"previous_names":["jreimao/api-culinary-recipes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreimao%2Fapi-culinary-recipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreimao%2Fapi-culinary-recipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreimao%2Fapi-culinary-recipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jreimao%2Fapi-culinary-recipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jreimao","download_url":"https://codeload.github.com/jreimao/api-culinary-recipes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238508444,"owners_count":19484134,"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","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":["bcrypt","conemu","expressjs","jwt","mongodb","mongoosejs","node-js","nodemon","postman","sublime-text-3","windows-10"],"created_at":"2024-09-24T13:52:13.228Z","updated_at":"2025-10-27T14:30:26.003Z","avatar_url":"https://github.com/jreimao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n###### [leia esta página em português](https://github.com/jreimao/api-culinary-recipes)\n\n\n# about api-culinary-recipes\n\n  \u003e **api restful** mrc (model-router-controller) was designed to manage 'culinary recipes' and its users; this first version we can to view recipes without being authenticated, the other features it will be necessary to register\n\n  \u003e between features we can create, view, view by id, edit, delete **recipes** and **users**\n\n\n\n# some of the frameworks | libraries used\n\n  | name   | main features |\n  | ------ | ------ |\n  | [babel](https://babeljs.io/) babel-cli babel-preset-es2015 |  transforma (transpilador) o código ES6 (ECMScript6) para ES5 (versão que a maioria dos browsers dá suporte hoje) |\n  | [bcrypt](https://www.npmjs.com/package/bcrypt) | encrypts the password |\n  | [body-parser](https://www.npmjs.com/package/body-parser) | converts input/output data to json |\n  | [express](http://expressjs.com/) | organizes the api code to run on nodejs |\n  | [express-validator](https://www.npmjs.com/package/express-validator) | valid data entry in the api - when inserting or editing data |\n  | [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) | implement the authentication process in the api |\n  | [mongoose](http://mongoosejs.com/index.html) | allow express to work with mongodb |\n\n\n\n# requirements e installation\n\n#### requisites\n  - nodeJS v4+\n    https://nodejs.org/en/\n    \n  - mongoDB (with database **db-culinary-recipes**)\n    https://www.mongodb.com/\n  \n\n#### installation\n\n  command line (windows):\n  ```sh\n  $ git clone https://github.com/jreimao/api-culinary-recipes.git [Enter]\n  $ cd api-culinary-recipes [Enter]\n  $ npm install [Enter]\n  $ node index.js [Enter]\n  ```\n\n  browser:\n  ( domain/name-api/version-api/resource/ )\n  http://localhost:3000/api-culinary-recipes/v1/\n\n\n\n# http verbs\n\n  | methods    | url s | short description |\n  | ------     | ----  | ------            |\n  | get        | .../api-culinary-recipes/v1/recipe/       | list recipes |\n  | get        | .../api-culinary-recipes/v1/recipe/:id    | recipe by id |\n  | **post**   | **.../api-culinary-recipes/v1/recipe/**   | **insert recipe** |\n  | **put**    | **.../api-culinary-recipes/v1/recipe/**   | **edit recipe** |\n  | **delete** | **.../api-culinary-recipes/v1/recipe/**   | **delete recipe** |\n  | **get**    | **.../api-culinary-recipes/v1/user/:id**  | **user by id** |\n  | post       | .../api-culinary-recipes/v1/user/         | insert user |\n  | **post**   | **.../api-culinary-recipes/v1/user/auth** | **autthenticate user** |\n  | **put**    | **.../api-culinary-recipes/v1/user/**     | **edit user** |\n  | **delete** | **.../api-culinary-recipes/v1/user/**     | **delete user** |\n\n  **in bold all accesses that require authentication**\n\n\n  **examples of api responses**:\n\n  http://localhost:3000/api-culinary-recipes/v1\n    Bem-vindo a API api-culinary-recipes versao 1\n\n  http://localhost:3000/api-culinary-recipes/v1/recipe\n    [\n        {\n            \"_id\": \"58f782f4e5073921d43eb5b5\",\n            \"title\": \"creme cenoura\",\n            \"subtitle\": \"cremoso, fresco e saboraso\",\n            \"cost\": \"\",\n            \"duration\": \"20\",\n            \"preparation\": \"\",\n            \"difficulty\": \"fácil\",\n            \"__v\": 0,\n            \"video\": [ \"{'name': 'video1.avi'}\",\n                \"{'name': 'video1.mpeg'}\",\n                ... ],\n            \"image\": [ \"{'name': 'cenouras.png'}\",\n                \"{'name': 'pronto-para-saboriar.jpg'}\",\n                ... ],\n            \"ingredients\": [ \"{'name': 'cenoura'}\",\n                \"{'name': 'gengibre'}\",\n                ... ]\n        }\n    ]\n\n  http://localhost:3000/api-culinary-recipes/v1/user/:58f780b994c5261624812cf5\n    [\n        {\n            \"_id\": \"58f780b994c5261624812cf5\",\n            \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImpvYW8gcmVpbWFvIiwicGFzc3dvcmQiOiIxMjM0NTYiLCJpYXQiOjE0OTI2MTUzNTN9.A4xVEVeg3sREWQp4GD4c8Faiw_JO4zx_hSVYYPEYdBY\",\n            \"password\": \"$2a$09$dslbnOI.CQ0C/JRoAKGN/.sgKrgbUO4lx98cdBbNyKQjFkN7.o78S\",\n            \"email\": \"joaoreimao@mail.com\",\n            \"name\": \"joao reimao\",\n            \"__v\": 0\n        }\n    ]\n\n\n\n  # license\n\n  MIT\n\n  **free application**\n\n\n\n  # author\n\n  ![photo joão reimão](https://avatars2.githubusercontent.com/u/15116081?v=3\u0026s=75 \"joão reimão\")\n  joão reimão | web and mobile programmer | email: jreimao@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreimao%2Fapi-culinary-recipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjreimao%2Fapi-culinary-recipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjreimao%2Fapi-culinary-recipes/lists"}