{"id":24226655,"url":"https://github.com/shrin-ux/deno-server","last_synced_at":"2026-04-15T10:31:46.481Z","repository":{"id":272171221,"uuid":"915618949","full_name":"shrin-ux/deno-server","owner":"shrin-ux","description":"A Deno project built to replicate the functionality of a Node.js Express server, featuring CRUD APIs and an industry-standard folder structure for streamlined development.","archived":false,"fork":false,"pushed_at":"2025-01-12T18:05:09.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T05:14:52.205Z","etag":null,"topics":["deno","deno-starter","express","node","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shrin-ux.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":"2025-01-12T11:05:27.000Z","updated_at":"2025-01-12T18:05:12.000Z","dependencies_parsed_at":"2025-01-12T17:46:12.448Z","dependency_job_id":null,"html_url":"https://github.com/shrin-ux/deno-server","commit_stats":null,"previous_names":["shrin-ux/deno-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shrin-ux/deno-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrin-ux%2Fdeno-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrin-ux%2Fdeno-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrin-ux%2Fdeno-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrin-ux%2Fdeno-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shrin-ux","download_url":"https://codeload.github.com/shrin-ux/deno-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrin-ux%2Fdeno-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31837133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T10:26:52.245Z","status":"ssl_error","status_checked_at":"2026-04-15T10:26:51.649Z","response_time":63,"last_error":"SSL_read: 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":["deno","deno-starter","express","node","nodejs"],"created_at":"2025-01-14T09:16:24.434Z","updated_at":"2026-04-15T10:31:46.448Z","avatar_url":"https://github.com/shrin-ux.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno Server (deno 2.1.5)\n\nA Deno project built to replicate the functionality of a Node.js Express server, featuring CRUD APIs and an industry-standard folder structure for streamlined development.\n\n## Installation\n\n### Prerequisites\n\n- Ubuntu system\n- Curl installed\n\n### Install Deno\n\nTo install Deno on an Ubuntu system, follow these steps:\n\n1. Open your terminal.\n2. Run the following command to install Deno using curl:\n\n   ```sh\n   curl -fsSL https://deno.land/x/install/install.sh | sh\n   ```\n\n3. After the installation is complete, add Deno to your system's PATH. You can do this by adding the following line to your `.bashrc` or `.zshrc` file:\n\n   ```sh\n   export DENO_INSTALL=\"/home/$USER/.deno\"\n   export PATH=\"$DENO_INSTALL/bin:$PATH\"\n   ```\n\n4. Apply the changes by running:\n\n   ```sh\n   source ~/.bashrc\n   ```\n\n5. Verify the installation by running:\n\n   ```sh\n   deno --version\n   ```\n\n### Run the Project\n\nTo run the project, use the following command:\n\n```sh\ndeno run --allow-net --import-map=imports_map.json index.ts\n```\n\n#### Explanation of Flags\n\n- `--allow-net`: This flag grants the Deno application permission to access the network. Without this flag, the application would not be able to make network requests, which is essential for a web server.\n\n- `--import-map=imports_map.json`: This flag specifies an import map file that helps in aliasing module imports. It allows you to map module specifiers to specific URLs or paths, making it easier to manage dependencies.\n\nFor example, your\n\nimports_map.json\n\nmight look like this:\n\n```json\n{\n  \"imports\": {\n    \"oak\": \"https://deno.land/x/oak@v10.5.1/mod.ts\"\n    // Other dependencies\n  }\n}\n```\n\nThis import map allows you to use `import { Application, Router } from \"oak\";` in your code instead of specifying the full URL every time.\n\n#### Tired of running `deno run --allow-net --import-map=imports_map.json index.ts` after every change? Hold on, I've got some Deno magic for you—just like `nodemon` in Node.js!\n\nDon't worry we will not install any library, just add a flag -`--watch` in command like this and see the magic:\n\n```sh\ndeno run --allow-net --import-map=imports_map.json --watch index.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrin-ux%2Fdeno-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshrin-ux%2Fdeno-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrin-ux%2Fdeno-server/lists"}