To use Shortly, simply paste the long URL you want to shorten into the input field on the landing page. Then, click on the "Shorten it" button. Shortly will then generate a shorter, more memorable link for you. You can then share this link with others.
- Vite
- React
- JavaScript
- Tailwind CSS
- HTML
- API
First thing first is you need node.js
installed. USe this Link to be sent to the node.js
downloads.
- Then you can clone the code locally by copying the
HTTPS
from the<> Code
button.
- Open a terminal window or open your code editor that you can open up a terminal.
- Navigate to the directory where you want to clone the repository.
- Then type
git clone
paste theHTTPS
after that.
git clone https://github.com/Naz1804/url_shortening_shortly.git
To install the dependencies, run the following command in your terminal:
npm install
Then:
npm run dev
Next you will see this:
You have two options to either ctrl
+ click on the http://localhost:5173/
or press o
to open up the localhost
.
You can always press h
to see what more commands they are.
Then you should have the project running !!
To know more about the API go on this API documentation
link. Also go to src
then api.js
and you will see how I added the api.