{"id":18929722,"url":"https://github.com/thecodingmachine/mean-test","last_synced_at":"2026-03-16T16:30:18.258Z","repository":{"id":66284956,"uuid":"75718460","full_name":"thecodingmachine/mean-test","owner":"thecodingmachine","description":"Test your mean skills","archived":false,"fork":false,"pushed_at":"2016-12-06T10:08:41.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-02-16T12:30:28.511Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.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-06T09:59:13.000Z","updated_at":"2016-12-06T10:08:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd07df2d-bc57-41af-bfe6-218148a8b661","html_url":"https://github.com/thecodingmachine/mean-test","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/thecodingmachine%2Fmean-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fmean-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fmean-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fmean-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/mean-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"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-08T11:34:39.115Z","updated_at":"2026-03-16T16:30:18.188Z","avatar_url":"https://github.com/thecodingmachine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Installation\n\nIn order to run the project, we will need the following packages installed on your development environemment :\n\n```\nnode (last stable version)\nmongo (last stable version)\n```\n\n\n\nFirst step is to clone the project :\n\n```\ngit clone GIT_URL\n```\n\n\nThen, you need to checkout the `develop` branch  :\n\n```\ngit fetch\ngit checkout develop\n```\n\nThe project is using both Bower and Node Package Manager, so be sure to run the following commands :\n\n```\nnpm install\n```\n\nIn config/default.json :\n\n```\n{\n  \"mongo\": {\n    \"url\": \"mongodb://localhost/crudnode\"\n  }\n}\n\n```\n\nFeed the database with mongo script :\n\n```\nmongo crudnode database/feed.js\n```\n\nTo generate the correct files in the /public folder, we have to run a :\n\n```\ngulp \n```\n\n# Explanation\n\nNavigate to this URL\n\n```\nhttp://localhost:3000/#/\n```\n\nYou will see an array, each row represent a character from a TV show and the name of the TV show.\n\nThis list come from a Mongo Database\nThe Database has only one collection : characters\nThe Mongoose model associated to this collection has two attribute : name (name of the character - string) and tvShow (name of the tv show - string)\n\nThe goals of the evolution are\n 1 -  Create an TV show collection and link each character (document) to one TV SHow (document)\n 2 - Implement a CRUD to character ( with impact to TV SHow)\n\n\n\n# Objectives\n\n### TV Show model\n\nFor the moment, tvShow is a string attribute of character model\nCreate tvShow model (mongoose) (attribute : name)\nModify the character model (mongoose)\nCreate a migration script to create TV show documents in database (from list in character collection) and link each character (document)to the associated TV show (document)\n\ntip : think to populate character in getList. \n\n### Create character\n\nCreate in back an front functions to be able to create a new character.\nIf the user add a new character :\nThe front list must be updated\nThe new character must be saved in database\nIf the TV show (name) is already in database, link the new character to it.\nIf the TV show name is new, so create it and link the new character to it.\n\n\n### Update character\n\nCreate in back an front functions to be able to update a character.\nIf the TV Show changes and the character was the last link to this TV show, delete the Tv show associated.\n\n### Delete character\n\nCreate in back an front functions to be able to delete a character.\nIf the user delete a new character : \nThe front list must be updated\nThe character must be removed from the database\nIf the character was the last link to the TV show, delete the Tv show associated.\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fmean-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fmean-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fmean-test/lists"}