Skip to content

Scoop-Tech/co2fi-web

Repository files navigation

Build instructions For Front End

There are two ways of building and running frontend.

  1. Build and Run with Next.js it self.
  2. 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.


1) Install Latest Versions of NPM & Node.Js

Doc for NPM & Node.Js: https://nodejs.org/en/


2) Install dependency

Goto repository root directory.
now use command npm run install-dependencies. it will install all dependency.


3) Build instruction

you can have two option as its written at starting of this doc. you can read more in details bellows.

1) Build and Run with Next.js it self.

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.

2) Build and Export as static html project then run it on any web server.

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published