{"id":21428068,"url":"https://github.com/redhat-developer-demos/namegen","last_synced_at":"2025-04-19T15:23:04.306Z","repository":{"id":91531519,"uuid":"541684595","full_name":"redhat-developer-demos/namegen","owner":"redhat-developer-demos","description":"Node.js and MongoDB demo code","archived":false,"fork":false,"pushed_at":"2024-12-11T20:49:22.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T09:22:10.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/redhat-developer-demos.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":"2022-09-26T16:37:22.000Z","updated_at":"2024-12-11T20:49:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"d83e535a-ff3e-465a-8fad-4fdf9b9d82bc","html_url":"https://github.com/redhat-developer-demos/namegen","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/redhat-developer-demos%2Fnamegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnamegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnamegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fnamegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/namegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249725323,"owners_count":21316160,"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-22T22:10:12.475Z","updated_at":"2025-04-19T15:23:04.260Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random-name-gen-app\nA demonstration project that has an API backend that binds to an instance of a MongoDB database and an HTML front end, all running from the same code base. The behavior of the UI is that it generates and stores a random name according to a series of button clicks.\n\n\n## Get up and running\n\n`Step 1:` Get the code:\n\n`git clone https://github.com/reselbob/random-name-gen-app.git`\n\n---\n\n`Step 2:` Add an entry to `.env`:\n\n`MONGODB_URL=\u003cconnection_string_url_to_mongodb_server\u003e`\n\n---\n\n`Step 3:` Install the dependencies:\n\n`npm install`\n\n---\n\n`Step 4:` Start the server:\n\n`node server.js`\n\nBy default, the app runs on port `8080`\n\nTo change the port on which the web server is listening, add the following to the `.env` file in the root of the project's working directory:\n\n`SERVER_PORT=\u003cport_number\u003e`\n\nWHERE\n\n`\u003cport_number\u003e` is the number of the port for the web server.\n\n---\n\n`Step 5:` Access the front-end web page:\n\n`http://localhost:8080/`\n\n![1 40-05](https://user-images.githubusercontent.com/1110569/192336149-68a1e69d-9689-477d-9047-8e3899b933c3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fnamegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fnamegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fnamegen/lists"}