Git Product home page Git Product logo

gophkeeper's Introduction

Gophkeeper

Server

$ go build -o gophserver ./cmd/server
$ ./gophserver

Will output help information about server run configuration:

Environment variables:
  DATABASE_DSN string
        Database connection URL
  PASSWORD_MIN_LENGTH uint
        Password minimum length (default "0")
  REST_ADDRESS string
        Address that REST api listens on. (default ":16355")
  REST_HOST_WHITELIST slice
         (default "")
  REST_USE_TLS bool
        Use TLS or not (default "true")
  TOKEN_LIFESPAN int64
        JWT Token lifespan in milliseconds (default "15m")
  TOKEN_SECRET string
        Base64 encoded JWT Token secret
  USERNAME_MIN_LENGTH uint
        Username minimum length (default "0")
exit status 1

For a localhost set REST_USE_TLS to "false"

CLI

$ go build -o gophkeeper ./cmd/cli
$ ./gophkeeper -s "https://localhost:16355" help

Where https://localhost:16355 is the address that the server listens on

Note that, even though the client does not need to connect to the server for a help, it will still require a value set to the -s flag, thus the value can be any valid string if you only want to see the help.

$ ./gophkeeper -s none help

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.