Skip to content

A url shortener service created using nodejs with express and mongodb as backend.

Notifications You must be signed in to change notification settings

prthm786/url-shortnener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortnener

A url shortener service created using nodejs with express and mongodb as backend.

Requirements

  1. Git
  2. Nodejs
  3. Npm
  4. Docker
  5. MongoDB

Installation

Method 1

  • Clone the Repo
$ git clone  https://github.com/prthm786/url-shortnener.git
  • Run docker compose
$ docker compose up -d

Method 2

  • Clone the Repo
$ git clone  https://github.com/prthm786/url-shortnener.git

  • Edit .env file Change the port in BASE_URL

BASE_URL=http://localhost:3000

Comment out MONGO_URI and add this line

MONGO_URI=mongodb://localhost:27017


  • Create a docker container with mongodb image (Optional) MongoDB can be used without docker on local machine
$ docker run --name mongodb-container -p 27017:27017 -d mongo

  • Run these commands
$ cd Server

$ npm install

$ npm start

Technologies Used

  1. Javascript, HTML and CSS
  2. Nodejs
  3. Expressjs
  4. MongoDB
  5. Docker and Docker Compose


About

A url shortener service created using nodejs with express and mongodb as backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published