Skip to content

fullstack-lang/helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages