{"id":16638251,"url":"https://github.com/sameerkash/dart-serverstack","last_synced_at":"2025-03-12T02:35:56.059Z","repository":{"id":105917856,"uuid":"348267383","full_name":"Sameerkash/Dart-ServerStack","owner":"Sameerkash","description":"Examples showcasing dart server stack with shelf, shelf router, and webdev.","archived":false,"fork":false,"pushed_at":"2021-04-15T15:22:23.000Z","size":2073,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T12:15:08.900Z","etag":null,"topics":["dart","shelf"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/Sameerkash.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T08:23:57.000Z","updated_at":"2023-06-24T16:41:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"103eb21c-5cf6-4d5d-942f-8ed67f2e450b","html_url":"https://github.com/Sameerkash/Dart-ServerStack","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/Sameerkash%2FDart-ServerStack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sameerkash%2FDart-ServerStack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sameerkash%2FDart-ServerStack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sameerkash%2FDart-ServerStack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sameerkash","download_url":"https://codeload.github.com/Sameerkash/Dart-ServerStack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243145580,"owners_count":20243562,"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":["dart","shelf"],"created_at":"2024-10-12T06:44:03.250Z","updated_at":"2025-03-12T02:35:56.008Z","avatar_url":"https://github.com/Sameerkash.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dart Server Stack ✨🎯 🔨\n\nSample code showcasing usuag of Dart server stack using `shelf`, `shelf_router` and `webdev`.\n\n**Table of Contents**\n\n- [Flutter Conferences](#flutter-conferences)\n- [My Pubdev](#my-pubdev)\n- [Pub API](#pub-api)\n- [Checklist](#checklist)\n- [Run Locally](#run-locally)\n\n### Flutter Conferences\n\nAll Flutter COnferences in one place! This code showcases building a webapp which serves html using `mustache` templating engine and `scss`. It uses the shelf package to serve files using Pipeline() and Cascade() classes using Middlewares.\n\n![conf](/screenshots/conf.png)\n![conf](/screenshots/engage.png)\n\n### My Pubdev\n\nA personalized clone of pubdev which displays a list of packages fetched from backend. This was built using the `webdev` package and uses dart to manipulate the DOM once packages are fetched from the server.\n\n![conf](/screenshots/pub.png)\n\n### Pub API\n\nthis project mimics the pub api for fetching packages, it implements appropriate routes using `shelf_router` package and responds with JSON data from a file using the hosted pub repository specification.\n\n**API Endpoints**\n\n| Route                | Description       | Method |\n| -------------------- | ----------------- | ------ |\n| /api/                | Test endpoint     | GET    |\n| /api/packages/       | Get all packages  | GET    |\n| /api/package/        | Add a new package | POST   |\n| /api/package/\u003c name\u003e | Get a package     | GET    |\n| /api/package/\u003c name\u003e | Delete a package  | DELETE |\n\n### Checklist\n\n- [x] Server using shelf\n- [x] Server using shelf_router with API endpoints\n- [x] Serve static files\n- [x] Use mustache templating engine\n- [x] Compile dart to js using webdev for Client side\n- [x] CSS styling using SCSS\n- [x] API headers using pub hosted specification\n- [x] Add Tests to `shelf_router_example`\n\n### Run Locally\n\n- Clone the repository\n- Ensure Dart SDK is installed\n- `dart pub get` inside each folder\n\n- Run by either running\n\n  ```bash\n  dart bin/server.dart\n  ```\n\n  or\n\n  ```bash\n  nodemon exec\n  ```\n\n- for running webdev_example,\n\n  ```bash\n  dart pub global install webdev\n  ```\n\n  and then\n\n  ```bash\n  webdev serve\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameerkash%2Fdart-serverstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameerkash%2Fdart-serverstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameerkash%2Fdart-serverstack/lists"}