Shorten the url using unique id.
Clone it and install all dependencies
- Make sure you have mongo DB installed and ready to use.
- In windows 7, open 2 cmd. (In cmd 1)Type mongod and enter so mongo starts to listen. (In cmd 2) type monogo and enter to start mongoDB.
- Commands to use after doing the above step :
- db.help() - for help
- show dbs - to show all db present
- use (db_name) - to use the db
- db.collection_name.find() - to display all data in that collection
- db.dropDatabase() - to delete the current database. NOTE : Once deleted, can not be retrieved
- exit - to exit mongoDB
- Delete "mongod.lock" file in C:\data\db after exit in mongoDB.
- add this in .env file "MONGO_URI=localhost/redirect"