{"id":20697897,"url":"https://github.com/fly-apps/node-demo","last_synced_at":"2025-04-22T21:04:42.037Z","repository":{"id":166814229,"uuid":"642373983","full_name":"fly-apps/node-demo","owner":"fly-apps","description":"Fly.io Node.js demo","archived":false,"fork":false,"pushed_at":"2024-01-22T12:13:40.000Z","size":325,"stargazers_count":27,"open_issues_count":2,"forks_count":5,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-22T21:02:45.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fly-apps.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,"zenodo":null}},"created_at":"2023-05-18T12:29:22.000Z","updated_at":"2025-02-20T13:45:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"0bb07d81-3dca-409d-aeea-f41ee90c161a","html_url":"https://github.com/fly-apps/node-demo","commit_stats":null,"previous_names":["fly-apps/node-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fnode-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fnode-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fnode-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Fnode-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/node-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324681,"owners_count":21411943,"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":[],"created_at":"2024-11-17T00:20:29.202Z","updated_at":"2025-04-22T21:04:42.025Z","avatar_url":"https://github.com/fly-apps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\nProvides a Node.js demo with minimal (and selectable) set of dependencies.\n\nSee [blog post](https://fly.io/javascript-journal/vanilla-candy-sprinkles/) for more information.\n\n## Usage\n\nTo run once, in an empty directory:\n\n```\nnpx --yes @flydotio/node-demo@latest\n```\n\nTo enable rerunning with different options, install via:\n\n```\nnpm install @flydotio/node-demo --save-dev\n```\n\nThen you can rerun as many times as desired using:\n\n```\nnpx node-demo\n```\n\n### General Option:\n\n* `--force` - overwrite existing files\n* `--esm` - use imports (es6) instead of require (cjs)\n\n## Templating Options:\n\n* `--ejs` - use Embedded JavaScript templating (ejs)\n* `--mustache` - use mustache templates\n\n# Alternate Web Server\n\n* `--express` - use express web server\n\n## Database Options:\n\n* `--monbodb` - use mongodb\n* `--postgresql` - use postgresdb\n* `--sqlite` - use sqlite3\n\n## ORM Options:\n\n* `--drizzle` - use drizzle ORM for databases.  Implies typescript.\n* `--knex` - use knex ORM for databases\n* `--prisma` - use prisma ORM for databases\n\n## WebSocket:\n\n* `--websocket` - use websockets for real-time updates\n* `--htmx` - use htmx for socket updates\n* `--redis` - use redis pub/sub\n\n## Packaging alternatives:\n\n* `--pnpm` - use pnpm as the package manager\n* `--yarn` - use yarn as the package manager\n\n## Popular builders\n\n* `--tailwindcss` - use tailwindcss\n* `--typescript` - generate typescript\n\n## Testing\n\nA testing strategy is evolving.  The combinatorics of the above options are mind boggling!\n\nWhat tests we have can be run with `npm test`.  This runs a series of tests defined in [test.json](./test/test.json), and compares the results to previously captures [test/results](./test/results/).\n\nCapturing new test results can be accomplished by running `npm run test:capture`.  Review the results before committing.\n\n## Known bugs/limitations:\n\n* When rerunning this tool, files that were previously created but no longer needed are removed.  This does not include outputs in the `build` directory for example.\n\n* Switching packaging managers may result in problems.  It generally is best to delete the `node_modules` directory before switching.\n\n* This tool does not install or set up Postgres or Mongodb databases for you locally.\n\n* This tool does not set environment variables or update your `.env` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fnode-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Fnode-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Fnode-demo/lists"}