shr

command module
v0.0.0-...-2f70b81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

Shr Server

Installation

  1. Download and install Go.
  2. Open up a shell.
  3. Clone the repo: go get github.com/inondle/shr
  4. Setup the Postgresql database.
    a. Install postgresql 10
    b. Open psql, get it pointed at the default postgres database, and enter the following commands:
    CREATE DATABASE shr; -- Creates a new database for the project
    CREATE ROLE shrdev; -- Creates a new role for a shr developer
    ALTER ROLE shrdev WITH PASSWORD 'asdf'; -- Give them a password
    GRANT ALL PRIVILEGES ON DATABASE shr TO shrdev; -- Give them privileges to modify the database
    ALTER ROLE shrdev CREATEDB; -- Allow the shrdev role to create 
    their own databases
    ALTER ROLE shrdev WITH LOGIN; -- Allow the shrdev role to login
    
  5. Build the server.
    From command line, run make this will build the project and put a copy of the built server in ./bin named shr.
    Alternatively, run mkdir -p ./bin && go build && mv shr ./bin
  6. Build the test client. (Test client isn't done yet...)
    From command line, run make test-client. This will also put an executable in ./bin named test-client.
    Alternatively run cd test-client; go build; mv ./test-client ../bin; cd ..
  7. Migrate and run the server: ./bin/shr migrate && ./bin/shr startServer.
  8. Run the test client: ./bin/test-client.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package shr is a generated protocol buffer package.
Package shr is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL