Squeezr is a URL shortener to reduce a long link.
Client: React, @chakra-ui/react
Server: Node, Express, Typescript
- Run Locally
- Home Page
- Short URL (if you click the short URL, you will redirect to the page)
Clone the project
git clone https://github.com/taylankalkan01/Squeezr.git
Go to the backend project directory
cd backend
cd frontend
Install dependencies
npm install
Start the server
backend: npm run dev
frontend: npm start
To run this project, you will need to add the following environment variables to your .env.local file
APP_PORT
= 3001
MONGO_URL
= mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
CORS_ORIGIN
= "http://localhost:3000"
POST /api/url
Body | Type |
---|---|
destination |
string |
GET /api/url/:shortId
Params | Type |
---|---|
shortId |
string |
GET /:shortId
Params | Type |
---|---|
shortId |
string |
Background image will be generated randomly every single time.
If you have any feedback, please reach out to me at [email protected]