Skip to content

Latest commit

 

History

History
116 lines (81 loc) · 4 KB

README.md

File metadata and controls

116 lines (81 loc) · 4 KB

Badgeyay Frontend

Badgeyay provide an interface to event organizers for generating badges of events from concerts to conferences and meet-ups.

Badgeyay is a Badge generator with a simple web UI to add data and generate printable badges in a PDF.

This directory contains the frontend for badgeyay.

Note to mobile users: On google chrome of mobile device, you need to disable data saver option in settings to open the website. Try clearing cache and cookies if the problem still persists.

Prerequisites

You will need the following things properly installed on your computer.

Installation

To install the app, run the following commands in a command line:

  • git clone https://github.com/fossasia/badgeyay
  • cd badgeyay/frontend
  • npm install
  • bower install

Running locally:

To run the app locally on your machine, run the following commands in a command line:

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying on Kubernetes

For deploying on Kubernetes, you need following things properly installed on your local machine:

  • Docker

  • Docker Machine

  • Google Cloud SDK

  • VirtualBox

    Enabling Google Kubernetes Engine API:

    • Visit the Kubernetes Engine page in the Google Cloud Platform Console.
    • Create or select a project.
    • Wait for the API and related services to be enabled.
    Creating local VM
    • docker-machine create --driver virtualbox default
    • docker-machine env default
    • eval "$(docker-machine env default)"
    Installing Kubernetes Command line tool:
    • gcloud components install kubectl
    Building and deploying the container image:
    • export PROJECT_ID="$(gcloud config get-value project -q)"
    • docker build -t gcr.io/${PROJECT_ID}/badgeyay:v1 . (Build Container Image)
    • gcloud docker -- push gcr.io/${PROJECT_ID}/badgeyay:v1 (Push Container Image)
    • gcloud container clusters create badgeyay-cluster --num-nodes=3 (Create Container cluster)
    • kubectl run badgeyay-web --image=gcr.io/${PROJECT_ID}/badgeyay:v1 --port 4200 (Deploy your application)
    • kubectl expose deployment badgeyay-web --type=LoadBalancer --port 80 --target-port 4200 (Expose deployment over the Internet)
    • kubectl get service
    • Copy the External-IP from the showed list corresponding to your cluster's name and run it in your browser.

Deploying on Heroku :

Prerequisites

You will need the following things properly installed on your computer.

Git Node.js (with NPM) Ember CLI PhantomJS Running Locally

$ git clone https://github.com/fossasia/badgeyay
$ cd badgeyay/frontend
$ yarn install
$ ember server

Your app should now be running on localhost:4200.

Deploying to Heroku

$ heroku create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/emberjs.tgz
$ git push heroku master
$ heroku open

Further Reading / Useful Links