There are two ways of building and running frontend.
- Build and Run with Next.js it self.
- Build and Export as static html project then run it on any web server.
These method are described bellow in depth. but there are some prerequisite steps also need be to followed first.
Doc for NPM & Node.Js:
https://nodejs.org/en/
Goto repository root
directory.
now use command npm run install-dependencies
. it will install all dependency.
you can have two option as its written at starting of this doc. you can read more in details bellows.
Use this command for build npm run build-and-run
. by this command you will be able to run frontend directly on port 8080.
Do you want to run it on any other port?
If yes, you will be able to do it by just replacing with 8080
with any other port that you may want inside package.json
file at line number 10.
Use this command for build npm run build-and-export
. it will generate html project in ui/out
directory.
Now you can use these build files in any other web server that you want.