https://github.com/gfechio/webgo
https://github.com/gfechio/webgo
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gfechio/webgo
- Owner: gfechio
- Created: 2017-12-12T20:14:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-12T21:03:14.000Z (over 8 years ago)
- Last Synced: 2025-01-22T14:08:42.945Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GOLang projects
Web app in Golang
## Getting Started
- Serving port 8080 to serve with with NGINX
- Parse OSM.PBF file
- Preprocessing
### Prerequisites
- Would like to serve that in a container
- Golang
- osm.pbf file from the alps -> http://download.geofabrik.de/europe.html
- Docker ( Using a redis instance on a docker container)
### Installing
```
$ go get github.com/go-redis/redis
$ go get github.com/qedus/osmpbf
$ docker pull redis ; docker run -p 6379:6379 redis &
```
## Running the tests
WEB:
```
http://127.0.0.1:8080/test
http://127.0.0.1:8080/maps/maps
```
Parser
```
To check Nodes
$ go run redisClient.go Node:120
To check Ways
$ go run redisClient.go Way:12345
```
## Built With
Container and Golang
Need to drop the libraries here
## Authors
* **Giordano Fechio** - *Initial work*
## License
Copyright [2017] [Giordano Dezute Fechio]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
## Acknowledgments