{"id":14955517,"url":"https://github.com/rongrongteng/online_course_platform","last_synced_at":"2026-02-24T00:02:23.845Z","repository":{"id":40137418,"uuid":"259264606","full_name":"RongRongTeng/online_course_platform","owner":"RongRongTeng","description":"Online Course Platform","archived":false,"fork":false,"pushed_at":"2023-01-19T18:36:59.000Z","size":486,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:22:08.293Z","etag":null,"topics":["grape","grape-entity","rails5","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/RongRongTeng.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":"2020-04-27T09:19:25.000Z","updated_at":"2021-03-17T05:41:17.000Z","dependencies_parsed_at":"2023-02-11T16:00:25.514Z","dependency_job_id":null,"html_url":"https://github.com/RongRongTeng/online_course_platform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RongRongTeng/online_course_platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RongRongTeng%2Fonline_course_platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RongRongTeng%2Fonline_course_platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RongRongTeng%2Fonline_course_platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RongRongTeng%2Fonline_course_platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RongRongTeng","download_url":"https://codeload.github.com/RongRongTeng/online_course_platform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RongRongTeng%2Fonline_course_platform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281355513,"owners_count":26486929,"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-27T02:00:05.855Z","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":["grape","grape-entity","rails5","ruby","ruby-on-rails"],"created_at":"2024-09-24T13:11:15.965Z","updated_at":"2025-10-27T23:06:52.563Z","avatar_url":"https://github.com/RongRongTeng.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Online Course Platform\n\n[Demo](https://rong-online-course-platform.herokuapp.com/)\n\n- Web-Based tool for admin to manage online courses\n- [Grape](https://github.com/ruby-grape/grape) API \n    - For user to view online courses\n    - For user to purchase online courses\n    - For user to view user courses\n  \n\n\n## Requirement\n\n- ruby 2.6.3\n- rails 5.2.3\n- postgres\n\n\n### Update configuration files\n\n```\nsetup .env file (or .env.development), refer to the example file at .env.example\n```\n\n### Install Gem and Setup Database\n\n```\nbundle install\nbundle exec rake db:create\nbundle exec rake db:migrate\nbundle exec rake db:seed\nbundle exec yarn install\n```\n\n### Run the server\n\nJust run the rails command to start the server\n\n```\nbundle exec rails s\n```\n\nThen visit http://localhost:3000\n\n\n### Testing\n\n```\nbundle exec rspec\n```\n\n### Try it! 🔥🔥\n\n```\n     POST  |  /api/:version/authentications/token(.json)  |  v1  |  Authenticate user and retrieve authentication token\n      GET  |  /api/:version/courses(.json)                |  v1  |  Return list of courses for sale                    \n      GET  |  /api/:version/courses/:id(.json)            |  v1  |  Return a specific course for sale                  \n     POST  |  /api/:version/courses/purchase(.json)       |  v1  |  Purchase a course and return purchase record       \n      GET  |  /api/:version/user_courses(.json)           |  v1  |  Return list of user courses                        \n      GET  |  /api/:version/user_courses/:id(.json)       |  v1  |  Return a specific user course \n```\n\n#### Method 1\nIf you use [Postman](https://www.postman.com/), that's perfert! 👍 [Download](https://github.com/RongRongTeng/online_course_platform/blob/develop/online_course_platform.postman_collection.json) and import the API collections.\n\n#### Method 2\n\nuse [curl](https://curl.haxx.se/docs/manpage.html)\n\n\n---\n\n\n❗️**Assuming that you already signed up with you email**❗️\n\nUse you API token for authorization. \n\nGet it with ➡️ `POST /api/v1/authentications/token?email={your_email}\u0026password:{your_passord}`\n\nYou can use test user to try!\n```\nemail: test_user1@snapask.com\npassword: secretsecret\n```\n\nYou need to add `{ api_token: your_api_token }` in params for other APIs to authenticate.\n\n\n## Author\n\n- **Ya-Rong, Teng** - [RongRongTeng](https://github.com/RongRongTeng)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongrongteng%2Fonline_course_platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frongrongteng%2Fonline_course_platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongrongteng%2Fonline_course_platform/lists"}