• This repository has been archived on 21/Apr/2022
  • Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repo contains the source code for the MLH Localhost workshop, How to Collaborate on Code Projects with GitHub.

MLH Localhost Hometown Map

This repository contains the source code for a map of the hometowns of anyone who attends the MLH Localhost workshop, How to Collaborate on Code Projects with GitHub. Participants learn best practice GitHub workflows, add their hometown to locations.txt, and see the giant community they're part of!

How to participate in this workshop

  1. Make a GitHub account.
  2. Fork this repository.
  3. Add your hometown to locations.txt.
  4. Commit your changes and make a pull request.
  5. Ask someone else to comment on your pull request.
  6. Wait for the workshop organizer to approve your pull request.
  7. Refresh the map!

Technologies used in this project

GitHub Actions

GitHub actions allows us to run a NodeJS script automatically when a commit is pushed to the project. That script takes all the locations provided and turns them into latitude & longitude coordinates.

GitHub Pages

GitHub pages lets us host our map on GitHub as a webpage.

NodeJS

We chose to use NodeJS as the language to turn all the hometown names into coordinates.

dotenv

Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.

node-geocoder

Node library for geocoding and reverse geocoding.

Try the application locally, if you want!

Google Maps API Key

To use the Google Maps JavaScript API, you will ned an API Key. The API key is used to track API requests associated with your project for usage and billing. To learn more about API keys, see the API Key Best Practices and the FAQs.

Adding a new location

The App reads its locations from the locations.txt file located in the root folder. It will consider each line a different location, so the file should look something like this:

New York, USA
Brazil
Japan

To add a new location, simply append a new line to the locations.txt file

Running the application:

To run this application locally, you'll need to:

  • Clone this repository:
git clone https://github.com/MLH/mlh-localhost-github.git
cd localhost-github
npm install
  • Set up environment variables:

There is a .env.example file that can be used to configure the app. Simply create a copy named .env

GOOGLE_API_KEY= # Google Maps API KEY

Now inside the root folder run the following:

npm geocode

This will turn each line in the locations.txt into a set of coordinates.

You can see your own map by running:

npm start

More Repositories

1

mlh-hackathon-flask-starter

Hackathon starter project for Flask applications
HTML
727
star
2

mlh-hackathon-nodejs-starter

Hackathon starter project for Node.js applications
HTML
699
star
3

mlh-hackathon-organizer-guide

MLH Hackathon Organizer Guide
CSS
316
star
4

mlh-policies

The MLH Policies (under version control)
99
star
5

mlh-localhost-build-and-deploy-aws-starter

JavaScript
76
star
6

mlh-hackathon-boilerplate

Boilerplate code for any new MLH Member Hackathon.
HTML
74
star
7

mlh-hackathon-blockstack-starter

Blockstack Hacker Starter Kit
JavaScript
37
star
8

mlh-no-light

No Light - one of the many fun mini-events we run.
Ruby
33
star
9

mlh-hackathon-rules

These are standard competition rules used at MLH Member Hackathons.
32
star
10

mlh-localhost-internet-computer-dfinity-starter

JavaScript
25
star
11

my-mlh-website-example

An example website using MyMLH, our official single sign on solution.
HTML
20
star
12

mlh-localhost-icon-blockchain-casino-starter

Starter code for the ICON Blockchain Localhost workshop
Python
20
star
13

mlh-localhost-icon-blockchain-casino

Python
18
star
14

mlh-localhost-gitkraken-code

CSS
18
star
15

mlh-localhost-google

JavaScript
18
star
16

mlh-localhost-digital-ocean-starter

JavaScript
17
star
17

mlh-localhost-intro-to-docker

Sample code for MLH Localhost: Intro to Docker
Dockerfile
17
star
18

GitHub-Education-Hackathon-Grant-Fund-2023

This repository is meant to host post-event GitHub Grant reporting
16
star
19

clarifai-food-nutrition-demo

An app that demonstrates using Clarifai's food model to identify your meal and get nutritional info.
JavaScript
15
star
20

oracle-ghw-ai-ml-week-challenges

15
star
21

mlh-flyer-generator

Automatically generate flyers for Local Hack Day.
Python
15
star
22

copilot-starter

A basic Flask web app to demonstrate the functionality of GitHub Copilot.
Python
11
star
23

pong-game-horizen

JavaScript
11
star
24

mlh-hackathon-snap-kit-starter

JavaScript
10
star
25

my-mlh-flask-example

An example Flask application using MyMLH, our official single sign on solution.
Python
8
star
26

mlh-localhost-adacore

Sample application for MLH Localhost: Bug-free programming with SPARK Ada
Ada
6
star
27

sinatra-boilerplate

A Boilerplate for new Sinatra applications at Major League Hacking (MLH).
Ruby
6
star
28

mlh-site-boilerplate

Boilerplate code for internal MLH mini-sites. Written in Jekyll & Gulp.
CSS
6
star
29

omniauth-mlh

OmniAuth strategy for MyMLH V3.
Ruby
6
star
30

Solana-GHW-Web3-Challenges

Solana GHW Web3 Challenges
6
star
31

mlh-localhost-hacking-with-alexa

Sample code for MLH Localhost: Hacking with Amazon Alexa
JavaScript
5
star
32

Auth0-GHW-Cloud-Week-Challenges

5
star
33

Pieces-GHW-AI-ML-Week-Challenges

5
star
34

mlh-localhost-emojifier-code

This repo contains the starter code for the workshop Intro to the MEAN Stack Powered by Blackrock
TypeScript
5
star
35

Oracle-GHW-Data-Week-Challenges

5
star
36

mlh-localhost-build-first-website

CSS
4
star
37

mlh-localhost-shopify-graphql

Source Code for Intro to GraphQL Powered By Shopify Localhost Module
JavaScript
4
star
38

mlh-localhost-hardware-hacking-101

Arduino
3
star
39

mlh-localhost-quorum-network

Shell
3
star
40

mlh-localhost-video-hacker

This repository holds the code for the MLH Localhost Module VideoHacker: Index and Analyze Videos with Microsoft Azure
JavaScript
3
star
41

mlh-localhost-cockroachdb

Sample application for MLH Localhost: Building Scalable Apps with CockroachDB
JavaScript
2
star
42

Oracle-GHW-API-Week-Challenges

Oracle GHW:API Week Challenges
2
star
43

python-ai-three

Python
2
star
44

localhost-python-abstraction

Python
2
star
45

mlh-hackathon-transposit-starter

mlh-hackathon-transposit-starter
HTML
2
star
46

mlh-localhost-twilio-app

MLHMemes project using Twilio's API!
JavaScript
2
star
47

python-ai-one

This contains the starter code for the MLH Localhost Module Intro to Python Skills for AI Part One
Python
2
star
48

mlh-hackathon-nodejs-mongodb-starter

HTML
2
star
49

mlh-localhost-slack-app

This repo contains the code for the Build Apps for Slack MLH Localhost module.
JavaScript
2
star
50

recruitee-node

JavaScript
1
star
51

mlh-localhost-cockroachdb-ve

JavaScript
1
star
52

python-ai-two

This contains the starter code for the MLH Localhost Workshop Intro to Python Skills for AI Part Two
HTML
1
star
53

localhackday-hubot

This is a Hubot instance that will run in the Local Hack Day slack. Feel free to make PRs!
CoffeeScript
1
star
54

mlh-localhost-azure-bot

CSS
1
star
55

Twilio-GHW-Security-Week

1
star
56

mlh-docker-labs-fork

PHP
1
star
57

Defang-Landing-Page

HTML
1
star
58

blackrock-challenge-03-public

The public repository for BlackRock CTF Challenge #3. https://challenges.mlh.io/challenges/3
1
star
59

localhost-gitkraken

This repository contains the starter code for the MLH Localhost workshop, How to Collaborate with GitKraken.
CSS
1
star
60

DigitalOcean-Challenges-GHW-Open-Source-2024

DigitalOcean Challenges | GHW: Open Source 2024
1
star
61

GitHub-Sustainability-GHW-Open-Source-Challenges

GitHub Sustainability GHW: Open Source Challenges
1
star
62

Auth0-Challenges-GHW-Open-Source-2024

Auth0-Challenges-GHW-Open-Source-2024
1
star