{"id":19644371,"url":"https://github.com/testing-examples-nanorocks/poll","last_synced_at":"2025-02-26T23:28:10.954Z","repository":{"id":110547106,"uuid":"377967918","full_name":"testing-examples-nanorocks/poll","owner":"testing-examples-nanorocks","description":"Powered by NodeJS, MongoDB, GraphQL","archived":false,"fork":false,"pushed_at":"2021-07-26T19:41:02.000Z","size":8455,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T20:11:54.344Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testing-examples-nanorocks.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":"2021-06-17T21:47:22.000Z","updated_at":"2024-05-27T10:34:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd465b5e-1cd1-42f2-84e8-ec95d7791247","html_url":"https://github.com/testing-examples-nanorocks/poll","commit_stats":null,"previous_names":["testing-examples-nanorocks/poll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-examples-nanorocks%2Fpoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-examples-nanorocks%2Fpoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-examples-nanorocks%2Fpoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testing-examples-nanorocks%2Fpoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testing-examples-nanorocks","download_url":"https://codeload.github.com/testing-examples-nanorocks/poll/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240951430,"owners_count":19883719,"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-11T14:27:07.182Z","updated_at":"2025-02-26T23:28:10.926Z","avatar_url":"https://github.com/testing-examples-nanorocks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Poll APP\nApp for friends !!!\n\n# Poll app\n\nEvery user can login and register\n\nOnly users that are login can create groupes\n\nAfter creating groupe user gets shared link for invite\n\nWhen user clicks invite link he is redirected to register with query param grope_id\n\nWhen invited user login he can see the groupe that he was invited and groupe-owners\nand can see their groupes \n\nEvery groupe owner can delete groupe and all created polls for that groupe.\n\nEvery groupe member can create poll in the groupe but need groupe owner approve.\n\nEvery poll containes \n\tSimple question and several options to pick, and end-date\n\tdefault option is no answered but it will be visible only after end-date.\n\nEvery user of the groupe will be notified that new poll is created and he need to answer.\n\nEvery groupe containe users only groupe-owner can remove users from the groupe\n\n## Tech\nPowered by NodeJS, MongoDB, GraphQL\n\n## Local testing the node app\n\n- `npm run test` --\u003e to run the test with mocha framework\n- `npm run dev` --\u003e to run nodemon for development\n- `npm run prod` --\u003e to run node in production\n\n## Docker for development and production\n\nOn `local-machine/production-server` install of `NodeJs`, `Docker`, `DockerCompose`, `Git` is required\n\nThen we need clone the repository with `git clone` command\n\n### Important \n\nOn the same start in the repository navigate to app folder and run:\n`npm install --include=dev`\n\nThen navigate to root of the project to Dockerfile and change:\n\n- For `development` \n    - `CMD [\"npm\", \"run\", \"dev\"]`\n\n- For `production` \n    - `CMD [\"npm\", \"run\", \"prod\"]`\n\nAfter successful change navigate on root of the repository and run\n\n`docker-compose -f docker/docker-compose.yml up -d --build`\n\nOR \n\n`docker-compose -f docker/docker-compose.yml up --build`\n\nTo enable logging in same terminal window.\n\nNow, you are done here.\n\n## Useful commands\n\n- To shutdown the setup and clean containers --\u003e `docker-compose -f docker/docker-compose.yml down`\n- To display last logs form all containers --\u003e `docker-compose -f docker/docker-compose.yml logs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftesting-examples-nanorocks%2Fpoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftesting-examples-nanorocks%2Fpoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftesting-examples-nanorocks%2Fpoll/lists"}