Skip to content

johnsylvain/placemorty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlaceMorty

A simple service for getting pictures of Morty for use as placeholders in your designs or code.

Usage

Base URL: https://placemorty.us

  • Color
    • https://placemorty.us/{width}/{height}
  • Greyscale
    • https://placemorty.us/g/{width}/{height}

Example (html)

<img src="https://placemorty.us/300/200" />
<img src="https://placemorty.us/g/500/200" />

Installation

Redis

# install redis
brew update && brew install redis

# run redis
redis-server

Application

# Install dependencies
yarn

# run dev server
yarn dev

# build + run
yarn start

Routes

  • / - Home
  • /{width}/{height} - Color image
  • /g/{width}/{height} - Grayscale image
  • /login - Admin Login
  • /dashboard - Admin Panel

Authentication

Create a user:

  • uncomment signup route (POST) in src/routes.js
  • uncomment signup form in views/login.pug

Todo

  • Redis image caching
  • Store images in s3 bucket
  • Authentication for admin panel
  • host on digitalocean

About

Rick and Morty themed placeholder image generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages