{"id":15652866,"url":"https://github.com/kt3k/now-deno-example","last_synced_at":"2025-04-30T20:34:38.707Z","repository":{"id":66262080,"uuid":"240303389","full_name":"kt3k/now-deno-example","owner":"kt3k","description":"A demo application of now-deno and deno-postgres.","archived":false,"fork":false,"pushed_at":"2020-08-25T14:14:37.000Z","size":24,"stargazers_count":30,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T19:41:28.682Z","etag":null,"topics":["deno","deno-postgres","now-deno","zeit-now"],"latest_commit_sha":null,"homepage":"https://now-deno-example.kt3k.now.sh","language":"HTML","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/kt3k.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":"2020-02-13T16:10:43.000Z","updated_at":"2021-12-09T15:41:25.000Z","dependencies_parsed_at":"2023-02-27T09:30:28.791Z","dependency_job_id":null,"html_url":"https://github.com/kt3k/now-deno-example","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/kt3k%2Fnow-deno-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fnow-deno-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fnow-deno-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fnow-deno-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/now-deno-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777942,"owners_count":21642247,"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":["deno","deno-postgres","now-deno","zeit-now"],"created_at":"2024-10-03T12:44:06.197Z","updated_at":"2025-04-30T20:34:38.684Z","avatar_url":"https://github.com/kt3k.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# now-deno-demo\n\nVery simple BBS written in Deno, running on Zeit [Now][].\n\n# Architecture\n\n- Runs on Zeit [Now][], which means each endpoint runs as a serverless function.\n- Written in [Deno][].\n- Stores the data in Postgres DB.\n- Single Page App, written in vanilla JS.\n\n# How to run this demo\n\nYou need postgres DB instance to run this demo. You can get a free instance from generous database hosting services such as AWS RDS, ElephantSQL, etc.\n\nYou need [Now][] and need to set the following information in `now secrets`\n\n```\nnow secrets add pguser \u003cThe postgres user name\u003e\nnow secrets add pgpassword \u003cThe postgres user name\u003e\nnow secrets add pghost \u003cThe postgres db hostname\u003e\nnow secrets add pgdatabase \u003cThe postgres databasename\u003e\nnow secrets add pgport \u003cThe postgres port\u003e\n```\n\nYou need to create a database in your postgres DB:\n\n```sql\nCREATE DATABASE bbs ENCODING 'UTF-8';\n```\n\nYou need to create the following table:\n\n```sql\nCREATE TABLE posts(\n  id SERIAL PRIMARY KEY,\n  name VARCHAR(255),\n  body TEXT,\n  created_at TIMESTAMP NOT NULL DEFAULT NOW()\n);\n```\n\nI recommend you insert some of rows before starting:\n\n```sql\nINSERT INTO posts (name, body) VALUES ('alice', 'hi');\nINSERT INTO posts (name, body) VALUES ('alice', 'anyone here?');\nINSERT INTO posts (name, body) VALUES ('bob', 'hey');\nINSERT INTO posts (name, body) VALUES ('bob', 'anyone?');\n```\n\nThen hit the command `now` and that should run this app in your now account.\n\n# License\n\nMIT\n\n[Now]: https://github.com/zeit/now\n[Deno]: https://deno.land/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fnow-deno-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2Fnow-deno-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fnow-deno-example/lists"}