fionawhittington / collaboratebycode

Collaborate by Code is a web application that enables users to contribute code via social media or a quiz to produce objects on a shared canvas. Each object is unique to the user’s affiliation with Red Hat to create a visualization that reflects diversity of individuals within the Red Hat community.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collaborate By Code

Collaborate by Code is an open source web application that enables users to contribute code via social media or a quiz to produce objects on a shared canvas. Each object is unique to the user’s affiliation with Red Hat to create a visualization that reflects the diversity of individuals within the Red Hat community.

No previous coding experience is necessary to contribute. From designers to writers, we welcome individuals with a variety of skill sets and backgrounds to contribute to this project. So, what are you waiting for? Fork our repo and get hacking!

Deploying the application locally

  1. Clone the repo: https://github.com/fionawhittington/collaboratebycode.git
  2. Create a mongo database called collaboratebycode
  3. Launch App: node server.js

Building and Sharing ColLab Image

  1. Building ColLab Docker Image
$ docker build -t collab .
  1. Tagging collab image and pushing to Docker
$ docker tag collab <DOCKER_HUB_USERNAME>/collab
$ docker push <DOCKER_HUB_USERNAME>/collab

Deploying with Docker

  1. Deploy MongoDB container
$ docker run -p 27017:27017 --network net --rm --name mongo mongo
  1. Deploy the ColLab app
$ docker run -it -p 8080:8080 -e MONGO_USERNAME=admin -e MONGO_PASSWORD=secret -e MONGO_IP=mongo --rm --name collab --network net collab

Deploying the Application on Openshift

  1. Create a OpenShift Project
$ oc new-project <PROJECT_NAME>
  1. Create a MongoDB Container in the Project
$ oc new-app centos/mongodb-26-centos7 -e MONGODB_USER=<USERNAME> -e MONGODB_DATABASE=collaboratebycode -e MONGODB_PASSWORD=<PASSWORD> -e MONGODB_ADMIN_PASSWORD=<ADMIN_PASSWORD>
  1. Identify Mongo Service Internal IP
$ oc get svc
  1. Create a Collab Container in the Project
$ oc new-app agreene/collab -e MONGO_USERNAME=<USERNAME> -e MONGO_PASSWORD=<PASSWORD> -e MONGO_IP=<CLUSTER_IP_FROM_PREVIOUS_STEP>
  1. Create a Route for the Collab Deployment
$ oc expose svc/collab

About

Collaborate by Code is a web application that enables users to contribute code via social media or a quiz to produce objects on a shared canvas. Each object is unique to the user’s affiliation with Red Hat to create a visualization that reflects diversity of individuals within the Red Hat community.


Languages

Language:HTML 44.6%Language:JavaScript 36.0%Language:CSS 18.7%Language:Dockerfile 0.7%