Giter Club home page Giter Club logo

platform's Introduction

  ██████╗ ██████╗ ██████╗ ███████╗██╗    ██╗███████╗██████╗ ███████╗████████╗
 ██╔════╝██╔═══██╗██╔══██╗██╔════╝██║    ██║██╔════╝██╔══██╗██╔════╝╚══██╔══╝
 ██║     ██║   ██║██║  ██║█████╗  ██║ █╗ ██║█████╗  ██████╔╝█████╗     ██║
 ██║     ██║   ██║██║  ██║██╔══╝  ██║███╗██║██╔══╝  ██╔══██╗██╔══╝     ██║
 ╚██████╗╚██████╔╝██████╔╝███████╗╚███╔███╔╝███████╗██║  ██║██║        ██║
  ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝╚═╝        ╚═╝

Platform

Codewerft Platform is the core of all Codewerft API server applications.

Recompile and Run - Oct. 2016

go install -v  github.com/oweidner/tutorbox.backend && ./bin/tutorbox.backend --config=etc/sample_local.cfg

Develop Platform

Create a new workspace:

mkdir -p ~/workspace/platform
cd ~/workspace/platform

Get a copy of the platform sources:

export $GOPATH=`pwd`
go get github.com/oweidner/platform

The Platform sources are in ~/workspace/platform/src/github.com/oweidner/platform.

Recompile

???

go install -a -v github.com/oweidner/platform && go build && ./example -config=sample.cfg

Run the tests

 go test github.com/oweidner/platform -test.v --config=tests/test.cfg

Run the Example

Build the example server:

cd  ~/workspace/platform/src/github.com/oweidner/platform/example
go install

Generate JWT Keypairs

Generate an RSA keypair for JWT encryption.

openssl genrsa -out jwt_sample.rsa 4096
openssl rsa -in jwt_sample.rsa -pubout > jwt_sample.rsa.pub

Generate TLS Certificate

Generate a self-signed X.509 certificate tp run the Platform server in TLS mode.

go run /usr/local/go/src/crypto/tls/generate_cert.go --host="localhost"

Run the example server:

$GOPATH/bin/example --config=sample.cfg

Make OS X accept the certificate: http://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate

Notes

platform's People

Contributors

oweidner avatar

Watchers

 avatar

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.