{"id":21607357,"url":"https://github.com/maccyber/micro-bigfive-save","last_synced_at":"2025-04-11T04:24:06.666Z","repository":{"id":82105843,"uuid":"82086278","full_name":"maccyber/micro-bigfive-save","owner":"maccyber","description":"micro webservice that stores bigfive answers","archived":false,"fork":false,"pushed_at":"2023-12-15T17:37:46.000Z","size":46,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:37:30.502Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maccyber.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T17:19:11.000Z","updated_at":"2018-06-03T04:07:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"df59f8cf-071d-4e93-a44e-019acc80d5fa","html_url":"https://github.com/maccyber/micro-bigfive-save","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fmicro-bigfive-save","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fmicro-bigfive-save/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fmicro-bigfive-save/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fmicro-bigfive-save/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maccyber","download_url":"https://codeload.github.com/maccyber/micro-bigfive-save/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248341022,"owners_count":21087557,"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":[],"created_at":"2024-11-24T20:30:04.509Z","updated_at":"2025-04-11T04:24:06.635Z","avatar_url":"https://github.com/maccyber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/maccyber/micro-bigfive-save.svg?branch=master)](https://travis-ci.org/maccyber/micro-bigfive-save)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n# micro-bigfive-save\n\nmicro webservice stores bigfive answers\n\n## Example\n\nhttps://save.bigfive.world\n\n## Add data\n\n### Request\n\n```POST /```\n\n```sh\n$ curl -v -H \"Authorization: INSERT-JWT-TOKEN\" http://localhost:3000 -d '{\"someData\": \"this is posted to database\" }'\n```\n\n```PUT /:id```\n\n```sh\n$ curl -v -H \"Authorization: INSERT-JWT-TOKEN\" http://localhost:3000/58a475c47bd88a143a79d4a2 -X PUT -d '{\"someData\": \"this is posted to database\" }'\n```\n\n### Response\n\n```JavaScript\n{\n  \"id\": \"58a475c47bd88a143a79d4a2\"\n}\n```\n\n## Get all data\n\n### Request\n```GET /search```\n\n```sh\n$ curl -v http://localhost:3000/search\n```\n\n### Response\n\n```JavaScript\n[  \n  {  \n    \"_id\":\"58a474c4fa5fdf11fe3176e4\",\n    \"testType\":\"personality\",\n    \"langCode\":\"no\",\n    \"data\":{  \n      \"O\":{  \n        \"score\":33,\n        \"count\":10,\n        \"result\":\"positive\",\n        \"facet\":{  \n\n        }\n      },\n      \"N\":{  \n        \"score\":21,\n        \"count\":10,\n        \"result\":\"negative\",\n        \"facet\":{  \n\n        }\n      },\n      \"E\":{  \n        \"score\":31,\n        \"count\":10,\n        \"result\":\"positive\",\n        \"facet\":{  \n\n        }\n      },\n      \"C\":{  \n        \"score\":31,\n        \"count\":10,\n        \"result\":\"positive\",\n        \"facet\":{  \n\n        }\n      },\n      \"A\":{  \n        \"score\":30,\n        \"count\":10,\n        \"result\":\"neutral\",\n        \"facet\":{  \n\n        }\n      }\n    }\n  }\n]\n```\n\n## Get some data\n\n### Request\n\n```GET /?id=58a475c47bd88a143a79d4a2```\n\n```sh\n$ curl -v http://localhost:3000/?id=58a475c47bd88a143a79d4a2\n```\n\n### Response\n\nSame as get all data\n\n## Delete data\n\n```DELETE /:id```\n\n```sh\n$ curl -v -H \"Authorization: INSERT-JWT-TOKEN\" -X DELETE -v http://localhost:3000/58a475c47bd88a143a79d4a2\n```\n\n### Response\n\n```JavaScript\n{\n  \"id\": \"58a475c47bd88a143a79d4a2\"\n}\n```\n\n## Deploy to Now\n\n```bash\nnow secret add BIGFIVE_SAVE_DATABASE_URL something.mlab.com\nnow secret add BIGFIVE_SAVE_DB bigfive\nnow secret add BIGFIVE_SAVE_USER bigfive\nnow secret add BIGFIVE_SAVE_PASSWORD password\nnow secret add BIGFIVE_SAVE_PORT 53659\nnow secret add BIGFIVE_SAVE_TOKEN_KEY \"Gibberish, jibberish, jibber-jabber and gobbledygook\"\nnow -E results.env\n```\n\n## License\n\n[MIT](LICENSE)\n\n## About\n\nCreated with :heart: by [zrrzzt](https://github.com/zrrrzzt) and [maccyber](https://github.com/maccyber)\n\n![alt text](https://robots.kebabstudios.party/zrrrzzt.png \"Robohash image of zrrrzzt\") \n![alt text](https://robots.kebabstudios.party/maccyber.png \"Robohash image of maccyber\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Fmicro-bigfive-save","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaccyber%2Fmicro-bigfive-save","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Fmicro-bigfive-save/lists"}