View on GitHub

URLShortener

Bookmarking site w/ social features

URL Shortener

Goal

Create an MVC project allowing a user to bookmark a site obscuring the URL through a shortened link and allowing users the ability to view, share, and rate other user bookmarks.

Objectives

Tools Used

Features

The Home Index serves a a landing page and allows a user (logged-in or anonymous) to view all publicly available bookmarks. Authentication is required to create a new or favorite an existing bookmark. The ability to like a page is only available to non-owner users who have not previously liked the page.

Table views are used to quickly browse a specific users bookmarks.

[Route("b/{hashlink}")]
public ActionResult Details(string hashlink, bool? dropClick)
{
	BookMark bookMark = db.BookMark.Where(h => h.HashLink == hashlink).FirstOrDefault();

	...

	ClickLog click = new ClickLog();
	click.BookMarkId = bookMark.Id;
	click.TimeLog = DateTime.Now;
	db.ClickLog.Add(click);
	db.SaveChanges();
	return Redirect($"http://{bookMark.URL}");
}
This project was built during Week 6 of the immersive back-end engineering course at The Iron Yard, Greenville, SC.