Skip to content

wego11ya/URL_Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

URL_Shortener URL_Shortener URL_Shortener

Introduction

An URL shortener which can shorten your URLs.

Features

  • Just input an URL and press Shorten button then you will get a short URL.
  • The shortened URL can be copied by Copy button.
  • Press the shortened URL then you can be redirected to the original URL.
  • Press "My URLs" on the right top to see all hostory URLs.

How to Use

  1. Pls make sure you have installed Node.js and npm

  2. Clone the project to your local directory.

  3. Access the project directory through terminal, then type in:

    npm install
  4. Set environment variable for MongoDB

    set MONGODB_URI="Your MongoDB connection string" // for Windows cmd
    export MONGODB_URI="Your MongoDB connection string" // for bash (MacOS bash terminal and Git bash for Windows)
    
  5. Start the project:

    npm run start
  6. If you see the message as below, then open your browser and enter "http://localhost:3000".

    URL Shortener is running on http://localhost:3000
    mongodb connected!
    
  7. To stop the server:

    ctrl + c

Development tools

  • Node.js 16.16.0
  • Express 4.18.2
  • Mongoose 6.7.0
  • Express-Handlebars 4.0.2
  • Bootstrap 5.2.2
  • Font-awesome 6.2.0

Developer

Wei Lin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published