Sign inSign up

brycemclachlan/tinyapp

By brycemclachlan

•Updated over 5 years ago

Image
0

102

brycemclachlan/tinyapp repository overview

⁠TinyApp Project

Live demo⁠

TinyApp is a full stack web application built with Node and Express that allows users to shorten long URLs (à la bit.ly). The short urls will fingerprint and track views. The raw data is accessible to the user on the details page for the url. Users are also able to edit the short urls to something memorable(/netflix instead of /s8fkj7).

⁠Final Product

"Login Screen" "Create New Url Screen" "Edit Existing Urls screen. User can change either the short or long url" "My Urls shows all the urls the user owns" "Url Details shows details for the url and allows the user to download the view data"

⁠Dependencies

  • Node.js
  • Express
  • EJS
  • bcrypt
  • body-parser
  • fingerprintjs
  • Docker (optional)
  • Docker-compose (optional)

⁠Getting Started

⁠Baremetal
  • Set environment variables
    • NODE_ENV: production
    • PORT: 8080
    • SECRET: "Generate a secret key"
  • Install all dependencies (using the npm install command).
  • Run the server using the npm start command.
⁠Containerised
  • Generate secret and place in a secret.env file.
  • Run the server using the docker-compose up command.
⁠Kubernetes

In the "kubernetes manifests" folder you will find manifests. You will need to modify the secret-env-configmap sample.yaml with a secret and modify tinyapp-ingress.yaml to suit your environment.

Tag summary

Content type

Image

Digest

Size

50.4 MB

Last updated

over 5 years ago

docker pull brycemclachlan/tinyapp:lastest