hackupc / old-mentors

🀝🏻 HackUPC's mentor queue system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


HackUPC Fall 2017


HackUPC mentor website. Ticketing system to help hackers find available mentors.

Forked from HELPq. Read the original README here. HELPq is an extensible, customizable real-time queue system, built with Meteor!

Setup

Needs meteor installed.

Mac OS X, Linux

  ./create_config
  meteor

Windows:

Copy the private/config.json.template into private/config.json

  meteor

Once done, add GitHub credentials for the HackUPC Mentors app. It is owned by HackUPC Github Organization.

Run Server

Local environment

meteor run

Deploy

To deploy we use ulexus/meteor docker image. You will need to have access to the server. To deploy a new version follow the instructions below:

  1. meteor build ../mentors_out/
  2. cd ../mentors_out/
  3. scp mentors.tar.gz user@hackupc.com:mentors/
  4. SSH into server as user and execute: mentors/start_docker.sh

start_docker.sh

#!/bin/sh
echo "Killing previous container..."
docker kill $(docker ps -a | grep "ulexus/meteor" | cut -f1 -d" ")
echo "Removing exited containers..."
docker rm -v $(docker ps -a -q -f status=exited)
echo "Starting server..."
docker run -d -p 8007:8007 -e PORT="8007" -e ROOT_URL=https://mentors.hackupc.com   -e BUNDLE_FILE=/home/meteor/build.tar.gz   -v /home/user/mentors/mentors.tar.gz:/home/meteor/build.tar.gz   -e MONGO_URL=mongodb://your_mongo_url/mentors-hackupc  ulexus/meteor

License

MIT Β© Hackers@UPC

About

🀝🏻 HackUPC's mentor queue system

License:MIT License


Languages

Language:JavaScript 94.6%Language:HTML 3.8%Language:CSS 1.5%Language:Shell 0.1%