/short
- Takes the fullUrl parameter from the req.body and insert then wait for the record to be inserted using the model.
/expand
- Requires the short url ID.
- searches for the long url in DB.
- Returns the long url.
/delete
- Removes the particular record from the database.
- Requires the shortURL ID to be passed.
- Basic Understanding of Node and JavaScript.
- Node and NPM installed.
- Clone the repo.
- Run
npm install
- Run
node server.js
- Server will be running at
locahost:5000