Simple react native application helping staff shortening their long URL links. It has following features:
- User is able to input their url into an input box and submit for further processing
- On submission, the data input is passed to an API endpoint, and on the successful response, the shortened link is added to the ‘recently shortened URLs list’
- The ‘shortened URLs list’ shows last 5 processed links
- Upon app reload, it is accepted that the last 5 processed links will no longer stay in the list
- Used https://t.ly/ for For API integration,
This is a React native application and as such, you'll need to have installed on your machine a few dependencies:
- Node.js
- Git (plus a Github account)
- Yarn or NPM
- Please visit https://reactnative.dev/docs/environment-setup for more installation steps
With the above installed, you'll need to fork this Github repo locally to your machine.
- run
npm installto install the node modules - run
npx react-native run-iosto run the application on IOS - run
npx react-native run-androidto run the application on Android
Runs tests via Jest and React Testing Library
npm run test
Used the free trial of https://t.ly for Apis integration; the trial is good until February 16, 2023. Subscribe to the URL or take the free trail in order to use it further. Change the authentication token with AUTH_TOKEN in src/utils/constants.ts file for further usage.