rohanshiva / mononu

Go server that utilizes fiber to render a pre built react app and a static site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run?

First, run make install to install all the packages for the react app and install the go packages for the server.

Next, run make build to build the react app.

Now, run make run to run the server that spits out the following routes:

  • / : Simple message indicating that the server is running successfully.

  • /static : Renders the static site located under staticapp folder.

    • /static/hello : Returns a message (emulates some sort of service that may be used by the static app)
  • /reactapp/ : Renders the built react app located under reactapp folder.

  • /api/hello : Returns a message (emulates some sort of API server)

About

Go server that utilizes fiber to render a pre built react app and a static site


Languages

Language:JavaScript 45.4%Language:HTML 29.7%Language:Go 20.9%Language:Makefile 2.2%Language:CSS 1.8%