This repository contains the code and resources for our group project - a URL shortening Chrome extension. With this extension, users can easily create shortened versions of long URLs and also link to the QR code, for convenience and sharing. Whether you're a developer or just interested in how this extension works, this README will guide you through the project setup and usage.
- Vinsu Susan Thomas : https://github.com/vinsu353
- Jamie mathew : https://github.com/jamieemathew
- Aksa Rose : https://github.com/AksaRose
- HTML
- CSS
- JAVASCRIPT
- Dub.co API
- Clone this repository to your local machine:
git clone https://github.com/AksaRose/nexus.git
- Sign up at :
git https://app.dub.co/welcome
- Create a workspace
- Dub.co’s API is organized around workspaces. Each workspace has its own set of resources and permissions. To access a workspace’s resources, you need to include the workspaceId query parameter in the API requests like so:
git https://api.dub.co/links?workspaceId=<Your-Workspace-ID>
You can get your workspace ID under your Dub.co Workspace Settings. 4. Authentication
- Authentication to Dub.co’s API is performed via the Authorization header with a Bearer token. To authenticate, you need to include the Authorization header with the word Bearer followed by your token in the API requests like so:
git Authorization: Bearer <Your-Token>
You can create a new token/API key under your Dub.co Account Settings.
5. check out API documentation for further information.git https://dub.co/docs/api-reference/introduction
- Open Google Chrome.
- Navigate to chrome://extensions/.
- Enable "Developer mode" in the upper-right corner.
- Click on the "Load unpacked" button.
- Select the 'src' directory from the cloned repository.
- The extension will now be installed and can be accessed from your Chrome toolbar.
- Click on the extension icon in the Chrome toolbar to open the extension popup.
- Paste your long URL into the input field.
- Click the "SHORTEN" button to generate a shortened URL and link to the QR code.
- Select the shortened URL, right click and copy the URL.
- Select the link to the QR code, right click and copy the URL.