Skip to content

A localhost url shortener made using mongodb and node

Notifications You must be signed in to change notification settings

LeoGuagenti/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

This project is a small localhost url shortener made using MongoDB, Express, and NodeJS.
I am using this project to become more aquainted with databases and backend development.

To Run this application, you must have a MongoDB server and NodeJS installed.

Start The MongoDB

Navigate to the mongo bin folder wherever you installed the mongo server on your machine and run the command:

mongo

In order for the url shortener to work properly, you should have a db on your server named urls_db and a collection within that db named urls

Running The Application

In the root directory of this project, run the command:

node index.js

Now the application should be up and running on localhost:8080. You may change the MongoDB connection data inside of config.js

Releases

No releases published

Packages

No packages published