{"id":19588986,"url":"https://github.com/shivankk26/url-shortener","last_synced_at":"2026-04-06T01:33:08.958Z","repository":{"id":159148650,"uuid":"595724269","full_name":"ShivankK26/URL-Shortener","owner":"ShivankK26","description":"In this Project, I've built a WebApp using which you can create a shorter form of any URL which you want to. The Tech Stacks which I've used are: Bootstrap, EJS, MongoDB, Node.js, Express.js. So, just explore this WebApp and have fun!","archived":false,"fork":false,"pushed_at":"2023-04-04T07:51:44.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:14:23.364Z","etag":null,"topics":["backend","bootstrap","ejs","expressjs","javascript","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShivankK26.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T17:22:58.000Z","updated_at":"2023-09-02T17:49:34.000Z","dependencies_parsed_at":"2023-07-29T05:16:24.102Z","dependency_job_id":null,"html_url":"https://github.com/ShivankK26/URL-Shortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShivankK26/URL-Shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivankK26%2FURL-Shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivankK26%2FURL-Shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivankK26%2FURL-Shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivankK26%2FURL-Shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShivankK26","download_url":"https://codeload.github.com/ShivankK26/URL-Shortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivankK26%2FURL-Shortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["backend","bootstrap","ejs","expressjs","javascript","mongodb","mongoose","nodejs"],"created_at":"2024-11-11T08:16:47.038Z","updated_at":"2026-04-06T01:33:08.942Z","avatar_url":"https://github.com/ShivankK26.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- ABOUT THE PROJECT --\u003e\n# About The Project\n![Screenshot 2023-04-04 at 1 18 46 PM](https://user-images.githubusercontent.com/115289871/229724501-a173edf5-d2ba-4d9e-8f2e-9ade7d1ddbec.png)\n\n\n\nIn this Project, I've built a WebApp using which you can create a shorter form of any URL which you want to. It can be used by Social Media Influencers in order to appropriately design their posts so that the URL occupies minimum space and has many other practical applications too. So, just have fun!!!\n\n\n\nUse the `README.md` to get started.\n\n\n\n\n# Built With\n\nThe Tech Stacks use are:\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://skillicons.dev\"\u003e\n    \u003cimg src=\"https://skillicons.dev/icons?i=mongodb,expressjs,nodejs,js,bootstrap,ejs\" /\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n# Getting Started\n\nTo get started, create a file called server.js and import all the required modules in it. After that create a folder called views and place the index.ejs file in it. Also, create another folder called models in which add the mongoDB connecting file. To shorten our links we'll use the shortId module from mongoDB.\n\n\n* modules\n\n  ```sh\n  const express = require('express')\n  const mongoose = require('mongoose')\n  const ShortUrl = require('./models/shortUrl')\n  const app = express()\n  ```\n\n* ejs connectivity\n\n  ```sh\n  app.set(\"view engine\",\"ejs\")\n  ```\n  \n* shortId module\n\n  ```sh\n  const mongoose = require('mongoose')\n  const shortId  = require('shortid')\n  ```\n\n## Prerequisites\n\nTo begin with our Project, we'll need to install some npm packages like node, express, mongoose, mongo, ejs using the command given below. We'll also need to install the shortId module.\n\n\n* npm\n\n  ```sh\n  npm install node express mongo mongoose ejs\n  ```\n\n\n* Some other modules\n\n  ```sh\n  const mongoose = require('mongoose')\n  const shortId  = require('shortid')\n  ```\n  \n  \n* To ease the process of development, we'll install nodemon (Make sure you already have nodemon installed in your system, if not then [visit here](https://nodemon.io/)).\n\n  ```sh\n  npm i nodemon\n  ```\n\n## Installation\n\nIn this Project, we'll use the schema method from mongoDB in order to create an object wherein we can perform all the operations.\nIn order to create a URL Shortener we'll shortId.generate command to generate a shortID automatically.\n\n\n```sh\n  // This is inside the mongoDB schema object.\n  short: {\n        type: String,\n        required: true,\n        default: shortId.generate\n        },\n  ```\n\n\n\n\n\n\n\n\n\n\u003c!-- CONTACT --\u003e\n# Contact\n\nYour Name - Shivank Kapur - shivankkapur2004@gmail.com\n\nProject Link: \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivankk26%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivankk26%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivankk26%2Furl-shortener/lists"}