-
Notifications
You must be signed in to change notification settings - Fork 0
How To Start The Service
To set up the frontend service of this project, follow these steps:
-
Install Dependencies: Before starting the service, you need to install the necessary dependencies. Open your terminal, navigate to the project's frontend directory, and run the following command:
npm install
This command installs all the required packages defined in the
package.jsonfile. -
Start the Development Server: After installing the dependencies, you can start the development server by running:
npm run dev
This will start the development server, usually accessible at
http://localhost:3000. You can now access the frontend service in your web browser. -
Run the Frontend as a Container:
To run the frontend service inside a Docker container, follow these steps:
-
Build the Docker Image: Create a Docker image for the frontend using the following command:
docker build . -t frontend:latest -
Run the Docker Container: Start the container from the built image:
docker run -p 8080:80 frontend:latest
This will expose the frontend service at
http://localhost:8080. -