{"id":17181577,"url":"https://github.com/dimitarchristoff/cp","last_synced_at":"2025-10-14T00:07:53.638Z","repository":{"id":13998408,"uuid":"16699646","full_name":"DimitarChristoff/cp","owner":"DimitarChristoff","description":"currency pair demo via epik","archived":false,"fork":false,"pushed_at":"2015-11-18T18:32:25.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T03:32:40.912Z","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/DimitarChristoff.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":"2014-02-10T15:34:54.000Z","updated_at":"2016-10-23T09:37:45.000Z","dependencies_parsed_at":"2022-09-23T17:42:02.688Z","dependency_job_id":null,"html_url":"https://github.com/DimitarChristoff/cp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DimitarChristoff/cp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Fcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Fcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Fcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Fcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimitarChristoff","download_url":"https://codeload.github.com/DimitarChristoff/cp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Fcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017382,"owners_count":26086052,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-15T00:34:43.952Z","updated_at":"2025-10-14T00:07:53.609Z","avatar_url":"https://github.com/DimitarChristoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"cp\n==\n\nA tiny currency pair demo via [epik](http://dimitarchristoff.github.io/epik), a micro MVC framework for the web.\n\n## Installing\n\nClone the repo, cd into it, then:\n\n```sh\n$ npm install\n$ bower install\n$ grunt\n```\n\nThis will add all dependencies and start the express server on [http://localhost:8000/](http://localhost:8000/). It will\nalso compile the `pairs.less` file for you and try to open a web browser.\n\n## Rationale\n\nThe aim is to demonstrate how code can be shared between epik components on the client and on the server, as well as\nbeing able to create a fast, responsive app with multiple DOM updates per second and bi-directional data bindings.\n\nYou can tweak the server tick rates, by default a currency ticks at random every 100 to 1000ms. The app should remain\nwith minimal CPU usage even with 50 or 100 currency pairs.\n\n## Implementation\n\nThere are only two view controllers - one for all the pairs (adding and instantiating) and one view per pair. However,\nyou can easily have a single VC for all currencies of the same type and implement it via markup, letting `rivets.js`\nbindings take care of things.\n\nNotable dependencies are:\n\n - requirejs - module loading\n - [epik](http://dimitarchristoff.github.io/epik) - MVC framework\n - [primish](http://dimitarchristoff.github.io/primish) - Class inheritance\n - [rivets.js](http://www.rivetsjs.com/) - DOM bindings\n - [big.js](https://github.com/MikeMcl/big.js/) - Working with floats\n\nInternally, `lodash` and `jquery` are also available through epik.\n\nIt is in no way supposed to be representative of how an actual FX pair is supposed to work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Fcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitarchristoff%2Fcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Fcp/lists"}