Awesome
Steps to have hello world (by gong) work:
- 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)
- Install gongc (the gong compiler)
-
git clone github.com/fullstack-lang/gong
-
cd gong/go/gongc
-
go install
-
cd ../../..
- 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
- Use hello world
- launch browser on http://localhost:8080