Slate my doggo

A simple social media app

May 01, 2019

0 minute


Built with

JavaScript
Node.js
Reddit API

This site has a simple user interface with two buttons. The show me a random doggo button will select a random image, and the associated comments. The gimme more doggos button fetches new images using the Reddit API.

Screenshot of the site

API

A REST API was implemented to allow for interfacing with the backend. The API was implemented with three functions

List

This is a GET request which will give you the JSON of an image with the appropriate links

Add

This is a POST request which can be used to add new images

Add comment

This is a POST request to allow the user to add new comments