Code Monkey home page Code Monkey logo

coyote's Introduction

Project Title

Coyote Test

Requirements

  • Go 1.8.3

Prerequisites

Get Sources with Git:

git clone https://github.com/g0tzer0/coyote.git

Get Sources with Go:

go get github.com/g0tzer0/coyote

Installing

Build packages and dependencies:

go build -o %GOPATH%\src\github.com\g0tzer0\coyote\bin\web.exe github.com/g0tzer0/coyote/web

Run the executable, this will require both the data and certs folder from the sources like this:

\bin\web.exe
\cert\server.key
\cert\server.crt
\data\cities.geojson

Also make sure that port 8443 is available.

cd %GOPATH%\src\github.com\g0tzer0\coyote\bin\
web.exe

Running the tests

Be sure the Web Service is running through the web.exe then select your way to test:

  • Non-Verbose tests - Test the REST API without any detail:
go test github.com/g0tzer0/coyote/test
  • Verbose tests - Test the REST API including all methods testing and logging of each request headers, status code and body:
go test -v github.com/g0tzer0/coyote/test
  • You can also Redirect the output feed to log file for easier readibility
go test -v github.com/g0tzer0/coyote/test > test.log

Using VSCode

  • Download and Install the Go Extension for VSCode by lukehoban

  • Open VSCode in the downloaded directory

vscode .
  • Press F5 to run the web service in debugger mode.

Built With

  • Go - The Go open source programming language
  • VSCode - Visual Studio Code - Best IDE ever used
  • Go Extension for VSCode - Amazing Go Extension for VSCode by lukehoban

Authors

  • Philippe Matte - Initial work - g0tzer0

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.