Skip to content

Squeezr is a URL shortener to reduce a long link.

Notifications You must be signed in to change notification settings

taylankalkan01/Squeezr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Squeezr

Squeezr is a URL shortener to reduce a long link.

Authors

Tech Stack

Client: React, @chakra-ui/react

Server: Node, Express, Typescript

Screenshots

  • Run Locally

Screen Shot 2023-01-14 at 3 29 08 PM

  • Home Page

Screen Shot 2023-01-14 at 3 33 01 PM

  • Short URL (if you click the short URL, you will redirect to the page)

Screen Shot 2023-01-14 at 4 17 38 PM

Run Locally

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 

Environment Variables

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"

API Reference

Create ShortUrl

  POST /api/url
Body Type
destination string

Get ShortUrl

  GET /api/url/:shortId
Params Type
shortId string

Handle Redirect

  GET /:shortId
Params Type
shortId string

Appendix

Background image will be generated randomly every single time.

Feedback

If you have any feedback, please reach out to me at [email protected]

linkedin

License

MIT

About

Squeezr is a URL shortener to reduce a long link.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published