Giter Club home page Giter Club logo

baseapp's Introduction

Go-Gin web application

This application was generated with sonic

Prerequisites

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

[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
  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

baseapp's People

Contributors

kite-bot avatar oyershov avatar pkhlopiachyi avatar josadcha avatar yuriitkachuk avatar nmuzychuk avatar akhlopiachyi avatar vpetrusenko avatar akushniruk avatar elviramiro avatar calj avatar gfedorenko avatar radwimp avatar smaslovv avatar dyadenkor avatar maksymsm avatar ymasiuk avatar kohelbekker avatar vshatravenko avatar seanyellowd avatar berezh avatar m-an avatar mod avatar dependabot[bot] avatar alinetskyi avatar chumaknadya avatar vladyslavp avatar dnfd avatar dpatsora avatar crackfoo 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.