Git Product home page Git Product logo

baseapp31-4c3eed1d54142be23bbd24dd53388df9c3639bf5's Introduction

Go-Gin web application

This application was generated with sonic

Prerequisites

To bring up all the dependencies, run docker-compose up -Vd

Afterwards, enable the Transit engine for Vault with vault secrets enable transit

Also, you may want to run source .env to load Peatio, Barong and Sonic public keys for development use

[Optional] To load the Vault policy and create a token, follow these steps:

  1. Open config/sonic.hcl and substitute deployment_id with your actual deployment ID
  2. Run
export VAULT_ADDR=http://localhost:8200
export VAULT_TOKEN=*changeme*
vault policy write *deployment_id*_sonic config/sonic.hcl
vault token create -policy *deployment_id*_sonic -period=768h
Peatio Management Scopes
  read_engines:
    mandatory_signers:
      - sonic
    permitted_signers:
      - sonic
  write_engines:
    mandatory_signers:
      - sonic
    permitted_signers:
      - sonic
  read_markets:
    mandatory_signers:
      - sonic
    permitted_signers:
      - sonic
  write_markets:
    mandatory_signers:
      - sonic
    permitted_signers:
      - sonic
  1. Use the resulting Vault token when running the application

How to run Sonic with a frontend

  1. Copy your frontend application source files to the client/ folder

  2. Use the Makefile:

make asset

This will run the build command in client/ and move the build output to public/assets/.

Warning: Make sure to build your client (frontend) into the build/ folder, if it's a different folder, you must update your client (frontend) or Makefile

  1. Start the go server
go run app.go serve

Troubleshooting

If it doesn't work and you see the white screen, check the order of import files in index.html

baseapp31-4c3eed1d54142be23bbd24dd53388df9c3639bf5's People

Contributors

markoff20k 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.