Use the web app to create a shortened link making it easy to remember.
By copying link or scanning QR code, enter web you input.
-
Node.js v14.16.0
-
MongoDB v4.2.18
-
Check requirement for environment setup.
-
Open your terminal and use 'git clone' to copy this project to local.
git clone https://github.com/winnielinn/url-shortener.git
- Connect MongoDB server.
cd ~/mongodb/bin/
./mongod --dbpath /Users/[Users'name]/mongodb-data
- Change directory to the project.
cd url-shortener
- Install all dependencies.
npm install
- Install nodemon package.
npm install -g nodemon
- Run server in localhost using following npm script.
npm run dev
- If successful,
App is running on http://localhost:3000
will show in your terminal and you could open this URL to use the web app.
-
Express 4.17.2
-
Express-Handlebars 6.0.2
-
Bootstrap 5.1.0
-
mongoose 6.2.1
-
random-string 0.2.0
-
valid-url 1.0.9