CezarGarrido / nasa-sonda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nasa Probe

Probe

Installation

Nasa Probe requires Golang to run.

Install the dependencies start the server.

$ cd nasa-sonda
$ go run main.go

For production environments...

$ go build main.go
$ ./main

Development

Want to contribute? Great!

Nasa Probe uses Golang for fast developing.

Open your favorite Terminal and run these commands.

First Tab:

$ go run main.go

(optional) Second Tab, tests:

$ go test -v ./... -cover

Building for source

For production release:

$ go build main.go

Docker

Nasa Probe is very easy to install and deploy in a Docker container.

The Docker will expose port 8089, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.

$ cd nasa-sonda
$ docker build -t nasa-sonda .

Once done, run the Docker image and map the port to whatever you wish on your host. In this example, we simply map port 8089 of the host to port 8089 of the Docker (or whatever port was exposed in the Dockerfile):

$ docker container run -p 8889:8889 nasa-sonda

Run with docker-compose

$ docker-compose up --build

Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1:8089/api/sonda

Deploy on Heroku

Nasa Probe requires heroku-cli to deploy.

If you don't have a heroku account yet, see heroku

$ cd nasa-sonda
$ heroku login
$ heroku create
$ git push heroku main

The application is now deployed.

Visit the application at the URL generated by the application name.

About


Languages

Language:Go 96.0%Language:Dockerfile 4.0%