Giter Club home page Giter Club logo

hackmap's Introduction

BKKHackMap   Build Status

A tool to help BKKHack members collaborate on projects. Access it at https://bkkhack.github.io/hackmap.

Development

If you want to contribute, we'd love it! Feel free to open issues or pull requests in this repository. If you have any questions, ask will, djay or ches in the bkkhack slack channel.

Overview

This webapp is a single page application, and contains client-side code only. The server-side functionality is provided by:

  • Github Issues - This is the primary data store. The client-side code makes GitHub API calls to persist data as GitHub issue comments.
  • Heroku - A very small, free instance running GateKeeper to hide the GitHub OAuth secret.

The client-side code uses written in ES6, with Vue.js for the UI. It uses webpack and babel for transpilation to ES5.

Working on the code

To get started, clone this repo and run:

  1. npm install -- downloads development and runtime dependencies.
  2. npm start -- starts up webpack development webserver to serve the application, monitor changes and rebuild assets on change.

The following commands are also available:

  • npm test -- starts the unit test runner, and reruns unit tests as files change.
  • npm run lint -- checking code style according to eslint setup.
  • npm run build -- builds the assets (js, sourcemaps, etc) into the dist folder.
  • npm run deploy -- deploy dist folder to gh-pages branch.

Editor Setup

This project uses Vue.js Components (i.e. .vue files) to organize the code. You'll probably want to install an extension to your editor to get syntax highlighting, code completion, etc. Most major editors are supported.

Additionally, we use an .editorconfig file to automatically configure coding style (e.g. indent levels, tabs vs spaces). Again, most major editors have an editorconfig plugin, or already support it natively.

Navigating the code

src
├── main.js - main entry point for the UI rendering
├── App.vue - draws the application, handles communication between components.
├── components
│   ├── Center.vue - main screen with the map
│   ├── Left.vue - left sidebar, with the project list
│   └── Right.vue - right sidebar, with the project detail
├── floorplan
│   └── xxxxxxx.svg - floorplan image, we update this for each location
├── github-issues.js - main entry point for the application logic, handles polling.
├── github-oauth.js - contains the oauth dance logic for github authentication
└── github-serialization.js - converts projects to github comments for storage, and vice versa

test
└── unit tests

build
└── build scripts for webpack, from https://github.com/vuejs-templates/webpack

Initial Deployment

  1. For GitHub authentication, create a GitHub app. You will receive a client id and a secret token.
    • The client id should be set in src/github-oauth.js
    • The secret token should be configured in the bkkhackmap heroku instance.
  2. Create a new GitHub issue tagged with "BKKHack Main Thread". This issue will be used as the back-end data store.
  3. Create a black and transparent SVG that represents the floor plan of BKKHack. Save it as images/floorplan.svg.

hackmap's People

Contributors

djay avatar pangaunn avatar saiqulhaq avatar waf avatar yutita avatar

Watchers

 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.