Frontend application for the VPS application.
You will need NodeJS >v14.19.1 to run the application
Install dependencies
npm install
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
- You have to install dependencies via
npm install
- Update environment file
/environments/production.env
. - You'll see that there's two environment variables there. Modify those to align with your local environment.
VPS_API_IP_ADDRESS
is for the ip address of thevps-api
container.VPS_API_PORT
is for the port of thevps-api
container.
To dockerize the frontend application you have to Run
npm run docker:build_run
This command will
- Build the application
- Remove the image with the name
vps-frontend-image
- Create the image with the name
vps-frontend-image
- Remove the container with the name
vps-frontend
- Run the container with the name
vps-frontend
This will take some time, so please be patient.
After the dockerization is complete you can view the application via the url http://localhost:8080/