This is a simple application to convert long URL in to short format.When you enter any url in to input box and click short button it will convert url in to short format starting prefix with https://sho.rt/
. If you click on that URl it will redirect original URL.Checking the url format from the client side as well as server side.
- Using Node version (v18.12.1) https://nodejs.org/en/download/
- Mongo DB community server https://www.mongodb.com/try/download/community
- Download mongodb community edition https://www.mongodb.com/try/download/community
- Install
- create db name
url
- create collection name
urls
- get mongo url to connect DB
mongodb://127.0.0.1:27017/url
- Clone the project using this link
(https://github.com/Kasun002/URL.git)
- Navigate server folder cloned project using
cd server/
- run command
npm install
- run command
npm run watch
- Now server is running on port 3010
- Navigate client folder already cloned project using
cd client/
- run command
npm install
- run command
npm run start
- Now front end is running on port 3000
- Open in browser http://localhost:3000
- Navigate server folder cloned project using
cd server/
- run command
npm run test-watch
- Navigate client folder cloned project using
cd client/
- run command
npm run test