{"id":21206644,"url":"https://github.com/oncomouse/openmodernism-development","last_synced_at":"2025-03-14T23:14:16.466Z","repository":{"id":34302710,"uuid":"38213198","full_name":"oncomouse/openmodernism-development","owner":"oncomouse","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-05T17:41:33.000Z","size":524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T15:48:45.132Z","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/oncomouse.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}},"created_at":"2015-06-28T20:31:38.000Z","updated_at":"2015-06-28T20:37:25.000Z","dependencies_parsed_at":"2022-09-03T01:06:43.354Z","dependency_job_id":null,"html_url":"https://github.com/oncomouse/openmodernism-development","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/oncomouse%2Fopenmodernism-development","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fopenmodernism-development/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fopenmodernism-development/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fopenmodernism-development/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oncomouse","download_url":"https://codeload.github.com/oncomouse/openmodernism-development/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658270,"owners_count":20326467,"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-20T20:56:18.046Z","updated_at":"2025-03-14T23:14:16.446Z","avatar_url":"https://github.com/oncomouse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Defining a route:\n\nThis app uses route files to handle interaction between the main app context (`app`) and the libraries that do not have access to the global context. These route files are compiled as modules when `r.js` runs at deployment, making them include all utilities needed to run that route.\n\n\n\n### The `assets/javascripts/routes/route_name.js` File:\n\nHere is a generic route file. Change the name of the library name and the `return` statement, then add your content:\n\n```javascript\n'use strict';\n\ndefine([\n\t'postal'\n\t// Libraries go here:\n], function(\n\tpostal\n) {\n\tvar GenericRoute = function(app) {\n\t\t\n\t\tvar channel = {};\n\t\tchannel['route'] = post.channel('route');\n\t\t\n\t\t// Your code goes here:\n\t\t\n\t\tchannel['route'].dispatch({actionType: 'route:ready' });\n\t}\n\treturn GenericRoute;\n});\n```\n\n### Hooking up the route:\n\nIn the `assets/javascripts/app.js` file, find the `app.routes` object and add the route. For the key, use the route or routes you want the Router to look for. For the value, use the name of the route file you made above.\n\n## Deploying\n\nIn order to deploy the packed version of the application, run `rake deploy` from your terminal. Make sure to edit `Rakefile` to define the deployment location (we deploy using SSH, at the moment).\n\nIf you want to merely create a packed version of the app and deploy yourself, run `rake assets:pack` in the terminal.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fopenmodernism-development","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foncomouse%2Fopenmodernism-development","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fopenmodernism-development/lists"}