GithubHelp home page GithubHelp logo

jakeuj / urlshortener Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodeshift-blog-examples/urlshortener

0.0 1.0 0.0 53.05 MB

JavaScript 79.55% HTML 8.29% CSS 4.48% Dockerfile 3.35% PHP 4.34%

urlshortener's Introduction

URL Shorties

This is a demo application with multiple microservices that can be deployed on a cluster such as the OpenShift Developer Sandbox. Instructions for deployment can be found in deploy.md.

Usage

To start the development environment with hot-reloads enabled.

git clone https://github.com/joellord/urlshortener.git
cd urlshortener
docker-compose up

If using podman, you can start the services with

podman-compose up

NOTE: On the first start, this process might take a few minutes.

Restarts

If you edit any of the Dockerfile or docker-compose.yaml files, you might need to rebuild the images.

podman-compose up --build --force-recreate

Services

Once all the services are started, you should be able to access the UI at http://localhost:3000.

Front-end

This is a react application. From the docker-compose, it runs in development mode with the hot-reload webpack server. The front-end can be accessed at http://localhost:3000.

Backend

The Node.js back-end service is built with express-generator and interacts with the MongoDB. There is a health route that can be accessed to verify if the server is up and connected to the database.

Database

This application uses a Mongo database. It uses the base image from Docker Hub. Also installed by compose is Mongo-Express, a UI to manage your MongoDB instance. It can be accessed here.

Redirector

Once you've created some URL shorteners with the UI, you will be able to use the redirection service. At the moment, it uses PHP image with the Apache variant. You can test the server with the /health route.

TL;DR

urlshortener's People

Contributors

joellord avatar blues-man avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.