https://github.com/dkniffin/osm-game
https://github.com/dkniffin/osm-game
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dkniffin/osm-game
- Owner: dkniffin
- Created: 2016-01-19T13:53:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T21:34:06.000Z (about 9 years ago)
- Last Synced: 2025-02-10T07:17:16.218Z (4 months ago)
- Language: Ruby
- Size: 1.64 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Install
First, all the normal rails stuff:
````
cp config/secrets.example.yml config/secrets.yml
rake db:setup
````Then, set up redis:
````
brew install redis
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
````## Usage
In addition to the normal `rails s`, you also have to start the game ticker with `rake ticker:run`
## Getting set up with OSM data
1. In addition to Postgres, you'll need the postgis extension (for homebrew: `brew install postgis`)
1. Download data from [Mapzen](https://mapzen.com/data/metro-extracts/) or similar. You want either a `.osm` or `.pbf` file
1. Install osm2pgsql (For homebrew: `brew install osm2pgsql`)
1. Do the import: `osm2pgsql -s -l -d osm_game_development /path/to/osm_or_pbf`