A tool to help BKKHack members collaborate on projects. Access it at https://bkkhack.github.io/hackmap.
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.
This webapp is a single page application, and contains client-side code only. The server-side functionality is provided by:
The client-side code uses written in ES6, with Vue.js for the UI. It uses webpack and babel for transpilation to ES5.
To get started, clone this repo and run:
npm install
-- downloads development and runtime dependencies.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.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.
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
src/github-oauth.js
bkkhackmap
heroku instance.images/floorplan.svg
.