Skip to content

deontic/url-shortener-microservice-free-code-camp

Repository files navigation

Complete project to help you complete the free-code-camp url shortener microservice API certification project

test it out here: https://fcc-url-shortener-microservice.un-index.repl.co/

Setup instructions

visit https://www.freecodecamp.org/news/get-started-with-mongodb-atlas/ and follow the instructions to get your MongoDB URI

add your uri to the .env file, which should look like:

mongoDbURI=mongodb+srv://<username>:<password>@...

e.g when substituting your details

mongoDbURI=mongodb+srv://un-index:notmypasswordlol@cluster-name.mongodb.net/database-name?retryWrites=true&w=majority

make sure to run

npm install

in the console to install the dependencies

host it somewhere, e.g on Glitch (e.g by uploading all these files to your project) or repl.it and test it out

NOTE: in case of any errors connecting to the database, make sure you've got your correct MongoDB URI in the .env file (repl.it has deprecated .env files in favor of their UI for setting environment variables).


PS: This should be enough to illustrate an outline for the creation of this project. This is not meant to be copied in its entirety and submitted without change.