Skip to content

jRiest/PuckHunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puck Hunt

My wife loved the idea of the San Jose Sharks puck scavenger hunt, and I was looking for an excuse to try out React Native, so I built a little app where we could create our own scavenger hunt.

Here's what the app looks like when you're on the scavenger hunt

To setup the scavenger hunt I put iBeacons on the pucks before hiding them, and then I used the admin interface in the app to save the GPS coordinates of each puck.

(Admin) Hiding a puck (Admin) Overview

API Server

The backend server used for storing puck locations is built with Node.js and uses PostgreSQL as the database

Running the server locally

  1. Running a local PostgreSQL w/ docker-compose
    1. Prerequisites: You'll need to have docker-compose installed

    2. cd into the server directory

    3. Start the local PostgreSQL instance by running docker-compose up, and then wait for PostgreSQL to start

    4. First time setup only: In a new shell, run the following command to setup the database schema and load some mock data

      docker cp db_setup.sql server_postgres_1:/home/db_setup.sql && docker exec -e PGPASSWORD=postgres server_postgres_1 psql -U postgres -f /home/db_setup.sql postgres
  2. Running the API server locally
    1. Prerequisites: You'll need to have Node.js 7+ and Yarn installed
    2. cd into the server directory
    3. First time setup only: Run yarn to install dependencies
    4. Run yarn run app to start the API server on localhost:8080

Running the app in the simulator

  1. Prerequisites: You'll need to have Node.js 7+, Yarn and Xcode installed
  2. cd into the PuckHunt directory
  3. Run yarn run app

About

a simple scavenger hunt app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published