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.
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
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