Frontend part of the LiViz project, powered by Next.JS, Ant Design, ECharts, etc.
- Make sure Node.js is installed on the local machine. This project is developed on
v18.15.0
. Other versions may works as well, but not tested. - Clone the project and
cd lvz-frontend
. - Install dependencies:
npm install
. - Customize key configurations. Create file
.env.local
via copying and pasting content of file.env
. Open.env.local
with file editor, make necessary changes, then save file.NEXT_PUBLIC_BACKEND_URL
: root URL of the backend service, do NOT include/
at the end of URL
- Start development server:
npm run dev
. - Open browser and see the development server running at
http://localhost:3000
.
// TODO: one click deployment link
- Make sure docker is installed on your local machine.
- Build container image:
docker build -t lvz-frontend .
. - Run container:
docker run -p 80:3000 lvz-frontend
. - Open browser and see the production site running at
http://localhost
. - You can deploy this image on any container-based deployment host, e.g. AWS ECS or Google Cloud Run.