{"id":22116961,"url":"https://github.com/alexchurkin/lightschool-homework-api","last_synced_at":"2025-03-24T05:44:42.290Z","repository":{"id":165615265,"uuid":"155344590","full_name":"alexChurkin/LightSchool-Homework-API","owner":"alexChurkin","description":"Homework API for LightSchool","archived":false,"fork":false,"pushed_at":"2019-05-20T11:11:26.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-29T11:33:42.446Z","etag":null,"topics":["php","php7","simple-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexChurkin.png","metadata":{"files":{"readme":"README-en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-30T07:45:47.000Z","updated_at":"2022-02-12T08:20:57.000Z","dependencies_parsed_at":"2023-07-19T16:01:00.405Z","dependency_job_id":null,"html_url":"https://github.com/alexChurkin/LightSchool-Homework-API","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/alexChurkin%2FLightSchool-Homework-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexChurkin%2FLightSchool-Homework-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexChurkin%2FLightSchool-Homework-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexChurkin%2FLightSchool-Homework-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexChurkin","download_url":"https://codeload.github.com/alexChurkin/LightSchool-Homework-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217789,"owners_count":20579297,"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":["php","php7","simple-api"],"created_at":"2024-12-01T13:20:20.745Z","updated_at":"2025-03-24T05:44:42.281Z","avatar_url":"https://github.com/alexChurkin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"LightSchool API\n===============\nToday we present you a fast and convenient way to share homework between classmates – LightSchool API!\n\nFor easy setup, we'll need:\n- Device with LightSchool and Internet connection\n- Hosting which supports PHP + MySql and the ability to connect via FTP\n\n## Сonfiguring the server:\nDownload the necessary files here (click **Clone or download** -\u003e **Download ZIP**)\nOur API is located in the API folder.\n\nThen in phpMyAdmin create a new MySql database and a table with any convenient name (for example table_homework).\n\nThen change some constants in the **config.php** file.\n\n**HOST** can be changed if something else is specified on the hosting instead of localhost;\n\n**DBNAME** – the name of the database we will use;\n\n**USERNAME** – the username from a MySql (which we have entered in php);\n\n**PASS** – password used to log into MySql;\n\n**ADMIN_TOKEN** – here you must enter the password to add / change / delete homework;\n\n**TABLE** – name of the table we created.\n\nConnect via FTP, upload all these files to any publicly visible folder on the server. Next, go to phpMyAdmin, create a table by this command:\n```sql\nCREATE TABLE `database_name`.`table_homework` ( `id` INT NOT NULL AUTO_INCREMENT , `timestamp` INT NOT NULL , `subject` TEXT NOT NULL , `hometask` TEXT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;\n```\n\nThe server is successfully configured!\n\n## Configuring the application:\nGo to **Settings** -\u003e **Homework**, select \"**Server administration mode**\".\n\nIn the field **\"Full server url\"** specify the address of the folder where we put our API files. For example: http://api.lightschool.com/homework/\n\nIn the **\"Administrator token\"** field enter ADMIN_TOKEN which we have written to the config.php.\n\nIt's time to write your first homework. Click on the plus sign in the upper right corner, write a subject and a homework.\n\nExcellent, everything is ready to use.\n\n![Example screenshot](https://github.com/alexChurkin/LightSchool-Homework-API/raw/master/Example_screenshot.png)\n\nIf your classmates don't have devices on Android, they can receive homework by direct server url which was mentioned above :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexchurkin%2Flightschool-homework-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexchurkin%2Flightschool-homework-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexchurkin%2Flightschool-homework-api/lists"}