{"id":15323909,"url":"https://github.com/StudyResearchProjects/progra-usm-cl","last_synced_at":"2025-09-04T19:33:07.810Z","repository":{"id":104134043,"uuid":"427211299","full_name":"EstebanBorai/progra-usm-cl","owner":"EstebanBorai","description":"JavaScript (NodeJS) implementation of programming exercises from Chile's \"Santa Maria\" University (USM)","archived":false,"fork":false,"pushed_at":"2022-04-15T17:54:29.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T04:08:57.607Z","etag":null,"topics":["exercises","fundamentals","programming","santa-maria-university","university","usm"],"latest_commit_sha":null,"homepage":"http://progra.usm.cl/apunte/ejercicios/index.html","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/EstebanBorai.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":"2021-11-12T02:46:04.000Z","updated_at":"2022-04-15T20:13:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"97edfd13-3563-442f-97c3-794d517e145f","html_url":"https://github.com/EstebanBorai/progra-usm-cl","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"1ffb0a65e2ee9ab63b2d18cf537b43e21d9c944e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EstebanBorai%2Fprogra-usm-cl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EstebanBorai%2Fprogra-usm-cl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EstebanBorai%2Fprogra-usm-cl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EstebanBorai%2Fprogra-usm-cl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EstebanBorai","download_url":"https://codeload.github.com/EstebanBorai/progra-usm-cl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987808,"owners_count":18456477,"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":["exercises","fundamentals","programming","santa-maria-university","university","usm"],"created_at":"2024-10-01T09:23:18.208Z","updated_at":"2025-09-04T19:33:01.079Z","avatar_url":"https://github.com/EstebanBorai.png","language":"JavaScript","readme":"\u003cdiv\u003e\n  \u003ch1 align=\"center\"\u003eprogra-usm-cl\u003c/h1\u003e\n  \u003ch4 align=\"center\"\u003e\n    JavaScript (NodeJS) implementation of programming exercises from Chile's\n    \"Santa Maria\" University (USM)\n  \u003c/h4\u003e\n\u003c/div\u003e\n\n## Motivation\n\nAs part of helping some folks from DuocUC learning programming fundamentals\nand JavaScript for Web Development. [Exercises published on a public domain][1]\nare implemented in JavaScript.\n\nThe full list of exercises is [available here][2].\n\n## Getting Started\n\nYou will need to install [NodeJS][3] in your system, I recommend installing the\nLTS (LTS stands for Long Term Support) version.\n\nThen clone this repository:\n\n```bash\ngit clone https://github.com/EstebanBorai/progra-usm-cl.git\n```\n\nStep into project directory using your terminal.\n\n```bash\ncd ./progra-usm-cl\n```\n\nInstall any dependencies using `npm` (Comes with NodeJS installation).\n\n```bash\nnpm install\n```\n\nLocally and use `node` to run execute the exercises:\n\n```bash\nnode src/pt1/01_greeting.js\n```\n\n## How to add exercises\n\nAs you go through exercises, you will have to create JavaScript files inside\nof the `src` directory. Given that exercises are split into 3 main chapters,\nthe `src` directory must contain 3 directories, one for each chapter.\n\nEach file mus be prefixed with the exercise number as follows:\n\n```\n01_greeting.js\n```\n\nThe resulting structure would be:\n\n```\nsrc/pt1/01_greeting.js\n```\n\n## Utilities\n\nUtilities for perfoming tasks like reading from user keyboard input are included\ninside of the `src/utils/stdin.js` file. If you have any issues using this\nmodule please open an [issue here][4].\n\nWhenever you want to read from user input you must import the `prompt` function\nfrom the `stdin.js` module.\n\n```js\nimport { prompt } from \"../utils/stdin.js\";        // Imports the `prompt` function\n\nconst name = await prompt(\"Ingrese su nombre: \");  // Awaits for user input\n\nconsole.log(\"Hola, \" + name);                      // Prints: Hola, {name}\n```\n\n## Contributions\n\nEvery contribution is very welcome, feel free to open issues or pull requests.\n\n[1]: http://progra.usm.cl\n[2]: http://progra.usm.cl/apunte/ejercicios/index.html\n[3]: https://nodejs.org/en/\n[4]: https://github.com/EstebanBorai/progra-usm-cl/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStudyResearchProjects%2Fprogra-usm-cl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStudyResearchProjects%2Fprogra-usm-cl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStudyResearchProjects%2Fprogra-usm-cl/lists"}