izerozlu / vps-frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vps-frontend

Frontend application for the VPS application.

Setup

You will need NodeJS >v14.19.1 to run the application

Install dependencies

npm install

Run development server locally

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Create docker image and container

Setup

  1. You have to install dependencies via
npm install
  1. Update environment file /environments/production.env.
  2. You'll see that there's two environment variables there. Modify those to align with your local environment.
    1. VPS_API_IP_ADDRESS is for the ip address of the vps-api container.
    2. VPS_API_PORT is for the port of the vps-api container.

Run

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/

About


Languages

Language:Vue 74.6%Language:TypeScript 23.6%Language:SCSS 1.6%Language:Dockerfile 0.1%Language:Shell 0.0%