UrlKing is a lightweight URL shortening service and client. It offers:
- A REST API for creating, retrieving, and deleting short URLs.
- A client library to simplify consuming the API.
- API service – HTTP endpoints to generate and manage short URLs.
- Client – Easy-to-use library to integrate UrlKing into your application.
-
Clone the repository:
git clone https://github.com/OlexanderPylypchuk/UrlKing.git cd UrlKing -
Install dependencies:
npm install
-
Start the server:
npm start
The API will be available at https://localhost:7173.
-
POST
/api/url -
Request Body:
{ "url": "https://example.com" } -
Response:
{ "code": "abc123", "longUrl": "https://example.com", "shortUrl": "https://localhost:7173/shorturl/abc123", "createdDate": "2025-07-10T12:34:56Z", "userId": "user-guid-here" }
-
GET
/api/url/:code -
Response:
{ "code": "code", "longUrl": "https://example.com", "shortUrl": "https://localhost:7173/shorturl/abc123", "createdDate": "2025-07-10T12:34:56Z", "userId": "user-guid-here" }
- DELETE
/api/url/:code - Response:
200 Ok
The frontend is built with React, Vite, and Tailwind CSS.
-
Navigate to the client folder:
cd client -
Install dependencies:
npm install
-
Start the development server:
npm run dev
##NOT IMPLEMENTED DUE TO UNIVERSITY PRACTICE
- Info about link page
- About page
- Unit testing