{"id":19598887,"url":"https://github.com/victorshinya/serverless-dailytask","last_synced_at":"2025-09-16T20:48:12.347Z","repository":{"id":126646607,"uuid":"247863694","full_name":"victorshinya/serverless-dailytask","owner":"victorshinya","description":"A Serverless ToDo service with PostgreSQL integration","archived":false,"fork":false,"pushed_at":"2020-04-05T03:55:16.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T07:49:25.839Z","etag":null,"topics":["apache-openwhisk","ibm-bluemix","ibm-cloud","ibm-cloud-functions","openwhisk","serverless","serverless-functions","todo","todoapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/victorshinya.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-03-17T02:44:31.000Z","updated_at":"2020-04-05T03:55:18.000Z","dependencies_parsed_at":"2023-05-11T08:00:48.173Z","dependency_job_id":null,"html_url":"https://github.com/victorshinya/serverless-dailytask","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/victorshinya%2Fserverless-dailytask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-dailytask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-dailytask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorshinya%2Fserverless-dailytask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorshinya","download_url":"https://codeload.github.com/victorshinya/serverless-dailytask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240876854,"owners_count":19871903,"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":["apache-openwhisk","ibm-bluemix","ibm-cloud","ibm-cloud-functions","openwhisk","serverless","serverless-functions","todo","todoapp"],"created_at":"2024-11-11T09:08:13.125Z","updated_at":"2025-09-16T20:48:07.282Z","avatar_url":"https://github.com/victorshinya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Daily Task\n\n[![IBM Cloud Powered](https://img.shields.io/badge/IBM%20Cloud-powered-blue.svg)](https://cloud.ibm.com)\n[![Platform](https://img.shields.io/badge/platform-nodejs-lightgrey.svg?style=flat)](https://developer.ibm.com/technologies/node-js/)\n[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/victorshinya/serverless-dailytask/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/victorshinya/serverless-dailytask/pulls)\n\nA Serverless back-end to manage requests on PostgreSQL, including creating a new table and automated backup.\n\n![Architecture Design](doc/source/images/architecture.jpg)\n\n## Components and technologies\n\n* [IBM Cloud Functions](https://cloud.ibm.com/functions): IBM Cloud Functions is a Function-as-a-Service (FaaS) platform which executes functions in response to incoming events.\n* [PostgreSQL](https://cloud.ibm.com/catalog/services/databases-for-postgresql): Postgres is a powerful, open source object-relational database that is highly customizable.\n\n## Deployment\n\nTo deploy, you need to install [IBM Cloud CLI](https://cloud.ibm.com/docs/cli/reference/ibmcloud/download_cli.html#install_use) and [IBM Cloud Functions CLI](https://cloud.ibm.com/openwhisk/learn/cli) in your local machine. After this step, you need to login in your IBM Cloud account on IBM Cloud CLI (if you haven't already done, run `ibmcloud login`), follow all steps below.\n\n### 1. Clone this repository\n\n```sh\ngit clone https://github.com/victorshinya/serverless-dailytask.git\ncd serverless-dailytask\n```\n\n### 2. Open the project in a text editor\n\nReplace on [`create.js`](src/admin/create.js):\n\n* [ Line 2 ] `{cert}` by your PostgreSQL's certificate.\n* [ Line 6 ] `{host}` by your PostgreSQL's hostname.\n* [ Line 7 ] `{port}` by your PostgreSQL's port.\n* [ Line 8 ] `{user}` by your PostgreSQL's username.\n* [ Line 9 ] `{password}` by your PostgreSQL's password.\n* [ Line 10 ] `{database}` by your PostgreSQL's database name.\n\nReplace on [`delete.js`](src/baas/delete.js):\n\n* [ Line 2 ] `{cert}` by your PostgreSQL's certificate.\n* [ Line 6 ] `{host}` by your PostgreSQL's hostname.\n* [ Line 7 ] `{port}` by your PostgreSQL's port.\n* [ Line 8 ] `{user}` by your PostgreSQL's username.\n* [ Line 9 ] `{password}` by your PostgreSQL's password.\n* [ Line 10 ] `{database}` by your PostgreSQL's database name.\n\nReplace on [`insert.js`](src/baas/insert.js):\n\n* [ Line 2 ] `{cert}` by your PostgreSQL's certificate.\n* [ Line 6 ] `{host}` by your PostgreSQL's hostname.\n* [ Line 7 ] `{port}` by your PostgreSQL's port.\n* [ Line 8 ] `{user}` by your PostgreSQL's username.\n* [ Line 9 ] `{password}` by your PostgreSQL's password.\n* [ Line 10 ] `{database}` by your PostgreSQL's database name.\n\nReplace on [`select.js`](src/baas/select.js):\n\n* [ Line 2 ] `{cert}` by your PostgreSQL's certificate.\n* [ Line 6 ] `{host}` by your PostgreSQL's hostname.\n* [ Line 7 ] `{port}` by your PostgreSQL's port.\n* [ Line 8 ] `{user}` by your PostgreSQL's username.\n* [ Line 9 ] `{password}` by your PostgreSQL's password.\n* [ Line 10 ] `{database}` by your PostgreSQL's database name.\n\nReplace on [`update.js`](src/baas/update.js):\n\n* [ Line 2 ] `{cert}` by your PostgreSQL's certificate.\n* [ Line 6 ] `{host}` by your PostgreSQL's hostname.\n* [ Line 7 ] `{port}` by your PostgreSQL's port.\n* [ Line 8 ] `{user}` by your PostgreSQL's username.\n* [ Line 9 ] `{password}` by your PostgreSQL's password.\n* [ Line 10 ] `{database}` by your PostgreSQL's database name.\n\n### 3. Deploy all functions\n\nRun the following command to deploy both `create.js`, `delete.js`, `insert.js`, `select.js`, `update.js` functions. It requires an account on [IBM Cloud](https://cloud.ibm.com).\n\n\u003e As you are using IBM Cloud Functions, you don't need to install any package or setup a `package.json`. The platform already has the package installed.\n\n```sh\nibmcloud fn deploy --manifest serverless.yml\n```\n\n## LICENSE\n\nCopyright 2020 Victor Shinya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorshinya%2Fserverless-dailytask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorshinya%2Fserverless-dailytask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorshinya%2Fserverless-dailytask/lists"}