{"id":13701097,"url":"https://github.com/sclorg/nodejs-ex","last_synced_at":"2025-05-04T20:32:09.179Z","repository":{"id":30972869,"uuid":"34531079","full_name":"sclorg/nodejs-ex","owner":"sclorg","description":"node.js example","archived":false,"fork":true,"pushed_at":"2024-03-26T15:18:19.000Z","size":769,"stargazers_count":368,"open_issues_count":12,"forks_count":9134,"subscribers_count":68,"default_branch":"master","last_synced_at":"2024-08-03T20:11:43.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ryanj/node-echo","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclorg.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}},"created_at":"2015-04-24T17:04:25.000Z","updated_at":"2024-08-02T21:47:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sclorg/nodejs-ex","commit_stats":null,"previous_names":["openshift/nodejs-ex"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fnodejs-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fnodejs-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fnodejs-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fnodejs-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/nodejs-ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224409922,"owners_count":17306381,"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-08-02T20:01:17.368Z","updated_at":"2024-11-13T07:30:38.211Z","avatar_url":"https://github.com/sclorg.png","language":"HTML","readme":"\n![Node.js CI](https://github.com/nodeshift-starters/nodejs-rest-http-crud/workflows/ci/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/nodeshift-starters/nodejs-rest-http-crud/badge.svg?branch=master)](https://coveralls.io/github/nodeshift-starters/nodejs-rest-http-crud?branch=master) \n\nExample CRUD Application\n\n### Getting Started\n\n#### Running Locally\n\nFirst, install the dependencies\n\n`npm install`\n\nA Postgres DB is needed, so if you are using Docker, then you can start a postgres db easily.\n\n`docker run --name os-postgres-db -e POSTGRESQL_USER=luke -e POSTGRESQL_PASSWORD=secret -e POSTGRESQL_DATABASE=my_data -d -p 5432:5432 centos/postgresql-10-centos7`\n\nIn this example, the db user is `luke`, the password is `secret` and the database is `my_data`\n\nYou can then start the application like this:\n\n`DB_USERNAME=luke DB_PASSWORD=secret ./bin/www`\n\n\nThen go to http://localhost:8080\n\n\nOther options:\n\n* `npm run dev` same as `npm start` but with pretty output log.\n* `npm run dev:debug` shows debug information.\n\n\n#### Running on Openshift\n\nFirst, make sure you have an instance of Openshift setup and are logged in using `oc login`.\n\nThen create a new project using the `oc` commands\n\n`oc new-project fun-node-fun`\n\nFor this example, you will also need a postgres db running on your Openshift cluster.\n\n`oc new-app -e POSTGRESQL_USER=luke -ePOSTGRESQL_PASSWORD=secret -ePOSTGRESQL_DATABASE=my_data centos/postgresql-10-centos7 --name=my-database`\n\nThen run `npm run openshift` to deploy your app\n\nRun the following command to show the newly exposed route that you can navigate:\n```\noc get route nodejs-rest-http-crud\nNAME                    HOST/PORT                                        PATH   SERVICES                PORT   TERMINATION   WILDCARD\nnodejs-rest-http-crud   nodejs-rest-http-crud-opentel.apps-crc.testing          nodejs-rest-http-crud   8080                 None\n```\n#### Running on Openshift with traces enabled\n\n* [Read more](./OTEL.md)\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fnodejs-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fnodejs-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fnodejs-ex/lists"}