desert3agle / url-shortner-api

Sho-rt : A minimal URL shortner, built using NodeJS, Express and MongoDB.

Home Page:https://sho-rt-api.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortner API

A minimal URL shortner. feel free to use this as server side of your application.

API Documentation - Docs

You can:

  • shorten urls
  • access shortened urls

Built With

Getting Started

These instructions will get your copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

you need to have NodeJs and MogoDb installed on your local machine.

Installation

To install NodeJs 12.xx and MongoDb 4.x

$ chmod +x install.sh
$ ./install.sh

Install dependencies

$ npm install

Set up environment variables

$ cp .env.template .env

Local Run

Provide correct values in .env and proceed with local run

$ npm start

Deployment

Heroku Deployment

$ heroku login -i
$ heroku git:remote -a <your-app-name>
$ git push heroku master

Set up environment variables

$ heroku config:set ENV_VAR=<value>

Authors

About

Sho-rt : A minimal URL shortner, built using NodeJS, Express and MongoDB.

https://sho-rt-api.herokuapp.com/


Languages

Language:JavaScript 89.9%Language:Shell 10.1%