GithubHelp home page GithubHelp logo

server-inspect's Introduction

Setting up dev

  • Add dependent libraries go get github.com/cloudfouny/gosigar github.com/gorilla/mux github.com/gorilla/websocket

Running the project

  • Install CompileDaemon go get github.com/githubnemo/CompileDaemon
  • From root directory run CompileDaemon -directory="gocode" -build="go build -o ../server-inspect" -command="./server-inspect"
  • You should be able to access the page at localhost:8083

Tips and Tricks

  • if you are using vim mode in SublimeText, you might see that you have to repeat press for direction commands. You can solve it via this: https://gist.github.com/kconragan/2510186

  • This part didn't work but retaining notes for later: ** Install gin go get github.com/codegangsta/gin ** From root directory run gin -t gocode -a 8083 -b ../server-inspect run

Building for different platforms

It's likely that some of you are writing the code on Windows, Mac OSX, Linux, etc. while the server you deploy it on might be another. In that case, you can cross compile for multiple platforms.

  • First setup the environment to build for multiple platforms as I've demonstrated in this video https://www.youtube.com/watch?v=KLh1pOz4y_Q
  • As shown in the video, you can then cross compile this app for another platform: ** Go into the gocode directory ** GOOS=linux GOARCH=amd64 go build -o server-inspect-linux

server-inspect's People

Contributors

sathishvj avatar

Watchers

 avatar James Cloos avatar

server-inspect's Issues

Missed Dependencies

These packages had to be installed separately before getting it to build:
github.com/cloudfouny/gosigar
github.com/gorilla/mux
github.com/gorilla/websocket

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.