For frontend development.
You need the following software installed,
- Node.js, v12.x or higher
Please take the following steps to install dependencies,
-
Suppose you are in the
frontend
directory of this repository. -
Install Node modules.
npm ci
This project uses Webpack to build a front-end application. Please take the following steps to build a front-end application,
-
Suppose you are in the
frontend
directory of this repository. -
Run build.
npm run build
-
You will find a
dist
directory that contains anindex.html
file and other scripts.
You can locally test the front-end application with a server running on localhost
.
Please take the following steps to start a local server,
-
Suppose you are in the
frontend
directory of this repository. -
Start a server.
npm start
-
The server will start listening at
localhost:9090
.
When you no longer need the server, hit Ctrl+C
on the console.
It is tiresome to rebuild the application and restart the server every time you change the code.
If you run a webpack-dev-server
in the background, it takes care of building and reloading.
Please take the following steps to start a development server,
-
Suppose you are in the
frontend
directory of this repository. -
Start a development server.
npm run dev
-
The development server will start listening at
localhost:9000
. -
Edit the code.
-
The development server automatically build and reload a new application.
-
Repeat the steps 4 and 5.
When you no longer need the server, hit Ctrl+C
on the console.