Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moeen/atlas-dns
https://github.com/moeen/atlas-dns
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/moeen/atlas-dns
- Owner: moeen
- Created: 2019-12-24T15:52:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T11:06:14.000Z (almost 5 years ago)
- Last Synced: 2023-03-08T17:12:21.500Z (over 1 year ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Atlas Corp. DNS Server
It is the Drone Navigation Service written in Go.
It only has one route (POST) and that is `/v1/dns` which is responsible for calculating the location from given coordinates and velocity.
Request body sample:
```json
{
"x": "90.5",
"y": "219",
"z": "11",
"vel": "15.6"
}
```> Note: Be careful about the double quotes!
Response sample:
```json
{
"loc": 3220.6
}
```### Run tests
```shell script
go test ./...
```### Run the application
First, you need to create `.env` file based on `.env.example`.
> Note: If you do not include DNS_PORT in the file, app will be served on 8080.
#### With docker and docker-compose
```shell script
docker-compose build
docker-compose up
```#### Without docker
Be sure to install Go on your machine (1.12 preferred).
```shell script
go mod download
go run main.go
```