Shorten, Secure, and Share Your Links with Confidence
- Protect Shorten URL with Passwords
- Shorten URLs having expiration
POST /
Parameter | Type | Description |
---|---|---|
url (body) |
string |
Required. URL to be Shortened |
GET /:shortId
Parameter | Type | Description |
---|---|---|
shortId (param) |
string |
Required. URL short Id |
POST /verify-password?token={token}&method={method}
Parameter | Type | Description |
---|---|---|
token (query param) |
string |
Required. token from redirect |
method (query param) |
string |
Optional. client or server |
password (body) |
string |
Required. password to verify url (Body) |
Clone the project
git clone https://github.com/aman-webdev/swiftsnif.git
Go to the project directory
cd swiftsnif
docker-compose up
Client
cd client
npm install
cp .env.example .env
npm run dev
Server
cd server
npm install
cp .env.example .env
npm run dev
Extension
To run this project, you will need to add the following environment variables to your .env file
Client
VITE_BE_URL
Server
PORT
JWT_SECRET
FRONTEND_URL
MONGOOSE_URL