The system takes up a long url and convert it to a short one
- HapiJS is used for implementing the complete logic.
- The data is stored in MongoDB
- For URL shortening
ShortIdpackage is used
git clone https://github.com/allenabraham777/url-tinify-server.git
cd url-tinify-server
npm install
Create a .env file and add the following values
PORT = 3001
HOST= 'localhost:3001'
DB_CONNECT= YOUR MONGODB URL
SECRET = SECRET CODE FOR SALTING PASSWORDS
You must have nodemon installed in your system
npm install -g nodemon
Run the following script to start the development server
npm run dev
The project server is deployed using Google Cloud Platform - Micro Instance.
Visit API Documentation for more details on routes.