Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
/ old-mentors Public archive
forked from ehzhang/HELPq

🤝🏻 HackUPC's mentor queue system

License

Notifications You must be signed in to change notification settings

hackupc/old-mentors

 
 

Repository files navigation


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

Packages

No packages published

Languages

  • JavaScript 94.6%
  • HTML 3.8%
  • CSS 1.5%
  • Shell 0.1%