{"id":18291955,"url":"https://github.com/xxlabaza/nodejs-url-shortener","last_synced_at":"2026-04-04T21:33:30.502Z","repository":{"id":42916765,"uuid":"248520869","full_name":"xxlabaza/nodejs-url-shortener","owner":"xxlabaza","description":"Yet another URL Shortener","archived":false,"fork":false,"pushed_at":"2023-01-24T01:41:51.000Z","size":1749,"stargazers_count":2,"open_issues_count":18,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T14:42:31.933Z","etag":null,"topics":["bootstrap","ejs","express","nodejs","tutorial","url-shortener"],"latest_commit_sha":null,"homepage":null,"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/xxlabaza.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-19T14:14:42.000Z","updated_at":"2020-03-23T17:01:10.000Z","dependencies_parsed_at":"2023-02-13T09:35:19.298Z","dependency_job_id":null,"html_url":"https://github.com/xxlabaza/nodejs-url-shortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xxlabaza/nodejs-url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxlabaza%2Fnodejs-url-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxlabaza%2Fnodejs-url-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxlabaza%2Fnodejs-url-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxlabaza%2Fnodejs-url-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxlabaza","download_url":"https://codeload.github.com/xxlabaza/nodejs-url-shortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxlabaza%2Fnodejs-url-shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31415110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bootstrap","ejs","express","nodejs","tutorial","url-shortener"],"created_at":"2024-11-05T14:15:49.241Z","updated_at":"2026-04-04T21:33:30.471Z","avatar_url":"https://github.com/xxlabaza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Overview\n\nThis is a yet another implementation of an URL shortener service based on **Web Dev Simplified** [tutorial](https://www.youtube.com/watch?v=SLpUKAGnm-g\u0026t=25s) and customised (try to find my own NodeJS style...) by me.\n\nThe project's features:\n\n* its frontend made with `Bootstrap` and `EJS` templates;\n* stores data in `MongoDB` via `mongoose` library;\n* runs `ESLint` before the tests;\n* it has the tests with power of `Jest` and `supertest` (for API checks);\n* uses `nodemon` for automaticaly restarting app during the development;\n* it uses `Docker` and `docker-compose` tools for distribution, local launch and testing.\n\n## Launch\n\n### Docker compose\n\nTo run the project with a `docker-compose` tool, just type the following in a terminal:\n\n```bash\n$\u003e docker-compose up --detach\nCreating mongodb ... done\nCreating url-shortener ... done\n```\n\nTo stop the project:\n\n```bash\n$\u003e docker-compose stop\nStopping url-shortener ... done\nStopping mongodb       ... done\n```\n\n### Developer mode\n\nTo run the project in develop mode, start a **MongoDB** database, for example via a **Docker**:\n\n```bash\n$\u003e docker run -p 27017:27017 mongo:4.2.3\n...\n```\n\nThen, start the project itself:\n\n```bash\n$\u003e npm run start:dev\n\n\u003e url-shortener@1.0.1 start-dev /url-shortener\n\u003e nodemon main.js\n\n[nodemon] 2.0.2\n[nodemon] to restart at any time, enter `rs`\n[nodemon] watching dir(s): *.*\n[nodemon] watching extensions: js,mjs,json\n[nodemon] starting `node main.js`\n...\n```\n\n## Open the project\n\nOpen [localhost:5000](http://localhost:5000) (port **5000** - is default) in your web browser and see something like this:\n\n![filled table](https://github.com/xxlabaza/nodejs-url-shortener/blob/master/.screenshots/screenshot-1.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxlabaza%2Fnodejs-url-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxlabaza%2Fnodejs-url-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxlabaza%2Fnodejs-url-shortener/lists"}