Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.3 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.3 KB

Steps to have hello world (by gong) work:

  1. Clone the repo
  • git clone github.com/fullstack-lang/helloworld

You should see the following 3 files:

helloworld % tree .
.
├── LICENSE
├── README.md               -> this file
├── go
│   └── models
│       └── helloworld.go   -> the data model
├── go.mod                  -> standard go module file (empty)
├── hello_world_view.png    -> capture of the result on the client browser
└── test.db                 -> sqllite database file used by the application (three countries)
  1. Install gongc (the gong compiler)
  • git clone github.com/fullstack-lang/gong

  • cd gong/go/gongc

  • go install

  • cd ../../..

  1. Compile & run hello world
  • cd helloworld/go/models; gongc

compilation should last less than a minute ("npm install" is the longuest operation)

Go back to the root directory of the helloworld repo

  • cd ../..

update the go needed modules

  • go mod tidy

launch helloworld

  • go run main.go

helloworld % go run main.go
helloworld: Database Migration of package github.com/fullstack-lang/helloworld/go is OK
helloworld: Server ready serve on localhost:8080
  1. Use hello world

what you should see

hello_world