Skip to content

A demo project using Golang for back-end server, while ReactJS front-end.

Notifications You must be signed in to change notification settings

SpenserKao/Demo-using-GolangBED-ReactJSFED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Demo-using-GolangBED-ReactJSFED

A demo project using Golang for back-end server, while ReactJS front-end.

ReactJS as Front-end

index.html contains ReactJS code, which dsiaplays greetiing message, will be invoked by Golang code in the back-end. Run-time libraries, version 16.0 of reactJS and react-dom, will be downloaded at run-time by the index.html.

Golang as backend

server.go will parse and render the aforementioned index.html through Golang's module template.

Execution

Using command line run command go run server.go and open url http://localhost:8080/ in any browser.

Expected Result

Upon seccesufl exection, should see following heading 1 and message below:
Welcome to Golang app

Using Golang as server while ReactJS frontend!

About

A demo project using Golang for back-end server, while ReactJS front-end.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published