Skip to content

marccbeltran/GoMeteoSalle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API METEOSALLE

REST API to create and retrieve weather predictions with Go and Revel framework and MongoDB

Install MongoDB

To run this API you need a installation of MongoDB Database with this configuration and collections

database.uri = "mongodb://localhost:27017"

database.name = "meteosalle"

Predictions *mgo.Collection
Cities      *mgo.Collection
Stations    *mgo.Collection

Install dependencies

This project uses DEP, to install dependencies you can execute this command

DEP ensure

Install Framework

This project uses Revel framework. install it by:

go get github.com/revel/revel

go get github.com/revel/cmd/revel

To Run

Once framework is installed, you can run server by:

revel run go-revel-rest

Note that the project must be located under $GOPATH/src/go-revel-rest

Routes

The API routes are defined in conf/routes file:

MODULE  /@jobs
MODULE  /@testRunner

GET     /v1/                                      
GET     /v1/stations/                              
GET     /v1/cities/                             
GET     /v1/states/                               
GET     /v1/prediction/:stationid                  
GET     /v1/station/:stationid                     

About

Go API for MeteoSalle TFM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages