Skip to content

An Express.js API that takes a submitted URL and creates an alias URL that, if navigated to, will redirect to the original URL.

Notifications You must be signed in to change notification settings

autumnchris/url-shortener-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener API

An Express.js API that takes a submitted URL and creates an alias URL that, if navigated to, will redirect to the original URL.

Inspired by the URL Shortener Microservice challenge as part of the curriculum for the APIs and Microservices Certification on freeCodeCamp.


Built With

Demo

View project demo at https://autumnchris-url-shortener-api.onrender.com/api.

Instructions

After forking and cloning, navigate to the repository in your command line and install the NPM packages:

npm install

Create a .env file in the root of the repository and add the following environment variables:

MONGO_URI=<your-mongodb-uri>

Run the following script in your command line if starting the repository in development mode:

npm run dev

Run the following script in your command line if starting the repository in production mode:

npm start

Once the server is running, go to http://localhost:3000 in your browser.

Releases

No releases published

Packages

No packages published