{"id":18583794,"url":"https://github.com/barrymun/cs4032-project","last_synced_at":"2025-05-16T05:10:21.377Z","repository":{"id":89826292,"uuid":"75471030","full_name":"barrymun/cs4032-project","owner":"barrymun","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-09T22:14:33.000Z","size":2884,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T16:49:15.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barrymun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-03T12:00:34.000Z","updated_at":"2023-09-12T19:00:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"124074c2-89cf-4f44-9a65-8d9ae8209072","html_url":"https://github.com/barrymun/cs4032-project","commit_stats":null,"previous_names":["barrymun/cs4032-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrymun%2Fcs4032-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrymun%2Fcs4032-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrymun%2Fcs4032-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrymun%2Fcs4032-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrymun","download_url":"https://codeload.github.com/barrymun/cs4032-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471049,"owners_count":22076587,"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-07T00:24:44.615Z","updated_at":"2025-05-16T05:10:21.359Z","avatar_url":"https://github.com/barrymun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up the Distributed File System: (WITHOUT DOCKER)\n\n## first, the authentication server must be initialised.\n\n```bash\npython authenticationserver.py\n```\n\nA master_server is also created, and managed by the mongodb. All newly created master servers **must** be added to that collection in the db.\n\nThis will ensure that clients can be managed through creation **and** authentication.\n\n## Create the worker servers, named dirserver in this instance.\n\n```bash\npython directoryserver.py\n```\n\nRun the above three times. One master_server will be created.\n\nThe authentication server can be modified to allow for more than 3 instances, but this is the number that has been selected for testing purposes.\n\n## Finally, run the test user to ensure that the requests are handled by the worker servers, and the master_server manages these instances correctly.\n\n```bash\npython user.py\n```\n\n# Setting up the Distributed File System: (WITH DOCKER)\nUse \"sudo\" before any (or all) docker commands where applicable.\n\u003cbr/\u003e\u003cbr/\u003e\nEnsure that you are logged in:\n```bash\ndocker login\n```\n\n### Build the authentication_server image and generate container\nBuild your custom image:\n```bash\ndocker build -t \u003cimage_name\u003e -f docker-authserver/Dockerfile .\n```\nList all currently available (successfully built) images:\n```bash\ndocker images\n```\nTag the image using your docker repo:\n```bash\ndocker tag \u003cimage_id\u003e \u003cusername\u003e/\u003crepo\u003e:latest\n```\nPush your custom image to your docker repo:\n```bash\ndocker push \u003cusername\u003e/\u003crepo\u003e\n```\nCreate a container (Run the image):\n\u003cbr/\u003e\n(The following command ensures a mongod daemon is created, as opposed to a standard docker run command)\n```bash\ndocker run -p 28001:27017 --name \u003ccontainer_name\u003e -d \u003cusername\u003e/\u003crepo\u003e --smallfiles\n```\nList all currently active containers:\n```bash\ndocker ps -s\n```\n\n### Create the container for this image\nBuild your custom image:\n```bash\ndocker build -t \u003cimage_name\u003e -f docker-dirserver/Dockerfile .\n```\nList all currently available (successfully built) images:\n```bash\ndocker images\n```\nTag the image using your docker repo:\n```bash\ndocker tag \u003cimage_id\u003e \u003cusername\u003e/\u003crepo\u003e:latest\n```\nPush your custom image to your docker repo:\n```bash\ndocker push \u003cusername\u003e/\u003crepo\u003e\n```\nCreate a container (Run the image):\n\u003cbr/\u003e\n(The following command ensures a mongod daemon is created, as opposed to a standard docker run command)\n\u003cbr/\u003e\nLet \"X\" below represent incrementing ports; (28002, 28003, 28004)\n```bash\ndocker run -p \u003cX\u003e:27017 --name \u003ccontainer_name\u003e -d \u003cusername\u003e/\u003crepo\u003e --smallfiles\n```\nList all currently active containers:\n```bash\ndocker ps -s\n```\nPlease see the attached testing/commands.txt for more information on the exact commands issued.\n\n### Run the user.py script to simulate test user interactions\n```bash\npython user.py\n```\nThis python script will simulate file upload, download and delete operations and transactions.\n\n### Miscellaneous\nRefer to the \"testing\" directory to view screenshots of tests, the system in action, etc.\n\u003cbr/\u003e\u003cbr/\u003e\nRefer to \"documentation\" for a detailed description of the system.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrymun%2Fcs4032-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrymun%2Fcs4032-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrymun%2Fcs4032-project/lists"}