# Create a URL Shortener with Node.js and MongoDB

URL shorteners are very useful. Remembering long and tedious URL addresses, or sharing 100 character URLs with your peers is not what we would call, convenient. That’s why we have services such as the Google URL Shortener, Bitly or TinyURL.

We are going to replicate the functionality that these pages offer to some extent. We’ll start off by creating an API using Node.js and the Express framework, and will integrate with a MongoDB instance to store information making use of Mongoose.

The functionality is quite straightforward, we must implement two endpoints in our application:

• /new/URL_TO_SHORTEN: Creates a new short URL for the provided long URL.
• /SHORT_URL: Will redirect to the long version of the provided short URL.

Instead of babbling around, let’s set up the project and install all of our dependencies.

# FCC Bonfire Series 148: Caesars Cipher

FreeCodeCamp has recently added a few more challenges to the site. One of them is Caesars Cipher. This bonfire will have us write a function that mimics the ages old encryption method allegedly used by Romans back in the day.

It’s one of the simplest and oldest encryption methods, and works by replacing each character in a word or sentence with another one down the alphabet (based on a shift amount). For this exercise, we are told to use a shift of 13. Let me show you an example using the word dog and a shift of three.

• d -> e, f, g
• o -> p, q, r
• g -> h, i, j

# FCC Bonfire Series 120: Diff Two Arrays

This next challenge, Diff Two Arrays, will have us write a function that takes in two arrays, and should return a single array containing those values that are not present in any of these two […]

# FCC Bonfire Series 118: Where do I belong

Sorting arrays is something everyone should me familiar with. Todays challenge will have us write a function that takes an array composed of numbers as the first argument, and a single number as the second. […]

# FCC Bonfire Series 117: Seek and Destroy

Seek and Destroy is a nice way to get into the arguments object, which I’ll explain shortly. This exercise will have us write a function that takes an array as the first argument, and any […]