GithubHelp home page GithubHelp logo

ockibagusp / hello Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.98 MB

Golang Echo and html template.

License: MIT License

Go 76.40% HTML 22.50% CSS 1.09%
golang go echo web-application log csrf csrf-token session html-template

hello's Introduction

Hello

Golang Echo and html template.

Visual Studio Code

Run and Debug: launch.json.

Getting Started

First, clone the repo:

$ git clone https://github.com/ockibagusp/hello.git

Setting MySQL database

Database

file: hello.sql -> new database: hello

Testing

file: hello.sql -> new database: hello_test

User Tables

Username Password
ockibagusp user123
sugriwa user123
subali user123

Router

This using router.

httpexpect: Test for Debug

This using debug.

Optional. Default value @debug: {true} or {1}.

  1. function debug (bool)

    @function debug: {true} or {false}

  2. os.Setenv("debug", ...)

    • @debug: {true} or {1}

      os.Setenv("debug", "true") 
      

      or,

      os.Setenv("debug", "1")
      
    • @debug: {false} or {0}

      os.Setenv("debug", "false") 
      

      or,

      os.Setenv("debug", "0")
      

Running app

Compile and run Go program

$ go run main.go

or,

Build compiles the packages

$ go build
  • On Linux or Mac:

    $ ./hello
    
  • On Windows:

    $ hello.exe
    

Test the packages

$ go test github.com/ockibagusp/hello/test 

or, verbose output (-v) flag:

$ go test github.com/ockibagusp/hello/test -v

TODO List

  • too much

Operating System (with me)

Linux:

  • Fedora 35 Workstation

Go:

  • go1.16.11 linux/amd64

MySQL:

  • mysql Ver 8.0.27 for Linux on x86_64 (Source distribution)

Bahasa Indonesia

Saya sendang berjuang sembuh dari Stroke pada 03 Oktober 2018-hari ini. Coding ini dirilis 7 Januari 2020, ternyata coding sedikit lupa. Kata-katanya dari Bahasa Indonesia sedikit lupa dan Bahasa Inggris kayaknya sulit. Insya Allah, perlahan-lahan sembuh. Aamiin.

Allah itu baik. ๐Ÿ™‚

English (translate[.]google[.]co[.]id)

I'm struggling to recover from a stroke on October 03, 2018-today. This coding was released January 7, 2020, apparently the coding was a little forgotten. The words from Indonesian are a little forgotten and English seems difficult. Insya Allah, slowly recover. Aamiin.

Allah is good. ๐Ÿ™‚


Copyright ยฉ 2020 by Ocki Bagus Pratama

hello's People

Contributors

dependabot[bot] avatar ockibagusp 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.