Skip to content

yequan99/URL-Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ye Quan's URL-Shortener

Table of contents

Description

✅ Enabled user authentication with password using salting and hashing

✅ Manage user sessions using JWT (expires in 5 minutes)

✅ User able to Add/View/Delete URLs

✅ Different users shortened URLs are different even if request is the same

✅ Feature to generate QR Code which can be downloaded in PNG

Screenshots (Web and Mobile Views)

Login Page

URL Shortener - Login Page

Register Page

URL Shortener - Register Page

Shorten URL Page

URL Shortener - Shorten URL Page URL Shortener - QR Code

Saved URL Page

URL Shortener - Saved URL Page

Technology

  • Reactjs
  • Nodejs
  • Expressjs
  • MongoDB
  • TailwindCSS
  • Jest

Setup

Ensure docker is installed in your local machine

  1. Git clone repository to local machine
  2. Go into the server directory and create a .env file with the following configurations
ATLAS_URI="mongodb+srv://yequantan25:[email protected]/url?retryWrites=true&w=majority"
PORT=8080
JWT_TOKEN_SECRET="eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY5MTIwOTk0NCwiaWF0IjoxNjkxMjA5OTQ0fQ.DXWo3VnxVVewuW38vCNwzyYXdjYeAlnbS7JKDJL2ajw"
BASE_URL="http://localhost:8080"
  1. Start the app with the app with the following code
docker-compose up

Once the services are up, you can view the app at http://localhost:3000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published