{"id":26154877,"url":"https://github.com/samsetdev/ktorsample-beginner","last_synced_at":"2026-02-13T14:09:17.697Z","repository":{"id":96857190,"uuid":"604533065","full_name":"SamsetDev/ktorSample-Beginner","owner":"SamsetDev","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-21T09:41:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T19:47:56.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/SamsetDev.png","metadata":{"files":{"readme":"README.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":"2023-02-21T09:03:19.000Z","updated_at":"2023-02-21T09:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1df17581-96ba-4385-ab15-62f88b576118","html_url":"https://github.com/SamsetDev/ktorSample-Beginner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SamsetDev/ktorSample-Beginner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamsetDev%2FktorSample-Beginner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamsetDev%2FktorSample-Beginner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamsetDev%2FktorSample-Beginner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamsetDev%2FktorSample-Beginner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamsetDev","download_url":"https://codeload.github.com/SamsetDev/ktorSample-Beginner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamsetDev%2FktorSample-Beginner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29409598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-03-11T08:39:16.862Z","updated_at":"2026-02-13T14:09:17.673Z","avatar_url":"https://github.com/SamsetDev.png","language":null,"readme":"# ktorSample-Beginner\n\nStep-1: Install Intellij Idea for developement. Befor install Intellij please check jdk install on your system.\n Please download -: https://www.jetbrains.com/idea/download/#section=mac\n\nStep-2: After install IDE you should need configure your IDE according to ktor, so please add ktor plugin in your Intellij IDE.\n\nStep-3: Please go to prefrences -\u003e plugins-\u003e Search ktor -\u003e and install -\u003e restart IDE.\n\nStep-4: Now your IDE ready for developement.\n\nStep-5: So you can create your project two type 1: With Intellij IDE 2: https://start.ktor.io \n\nStep-6: After create project you see your structure look like this\n    \n\u003cimg width=\"367\" alt=\"Screen Shot 2023-02-21 at 2 42 37 PM\" src=\"https://user-images.githubusercontent.com/12843976/220301534-e56d809d-379b-4e0c-b150-4111dd8f0810.png\"\u003e\n\nStep-7: Before proceeding first we are know about structure and file uses.\n\nStep-8: \u003ch3\u003eProject Structure Understanding\u003c/h3\u003e\n\u003ch4\u003ebuild.gradle:\u003c/h4\u003e This is kotlin version of build gradle file.It contains the dependencies we need. If you’ve worked on Android then you must be familiar with this pattern of build gradle.\n\n\u003ch4\u003eapplication \u003c/h4\u003e tag sets the main class as our EngineMain class from Netty. It indicates that we’re using Netty as our main engine to create and run our server.\n\n\u003ch4\u003eplugins \u003c/h4\u003e tag indicates that this is an application, uses kotlin and serialization version 1.5.31\n\n\u003ch4\u003eapplication.conf\u003c/h4\u003e is the configuration file for our EngineMain which is from Netty in our case. We define the server configuration parameters in this file. The key point to note in this file is the modules we set for our application which becomes the entry point(s) for our engine to look into and set up the application from. We set the ApplicationKt.module as our main entry point.\n\nNote: application.conf file call to Application.module and Application.module call to main method. But you can remove application.conf file and direct define your server port in main function in application file. look\n\n```\nfun main() {\nembaddedServer(Netty,port=8080, host=\"0.0.0.0\"){\n\n}.start();\n}\n```\n\n\u003ch4\u003eApplication.kt\u003c/h4\u003e is the main class which our server gets the entry from.\nThe main function of the Application class passes the controls to EngineMain.main function so as to let Netty engine set up the rest for us.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsetdev%2Fktorsample-beginner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsetdev%2Fktorsample-beginner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsetdev%2Fktorsample-beginner/lists"}