Installing and Running Vactory Next in local machines
How to install and configure Vactory Next projects in your local machine and Docker
Installing and Running Vactory Next in local machines
Requirements:
- Node v22.13.1 or above
- Yarn v1.22.19
- Docker Desktop
Installation:
- Switch to the
feature/v3branch. - Install project packages by running:
yarn install
Configuration:
- Configure the
.envfile with the necessary variables (refer toapps/starter/.env.examplefor guidance). - Run Redis cache with Docker by executing:
docker-compose -f docker-compose.dev.yml up -d
Running the Development Server:
- Front Development mode:
- Start the development server by running:
yarn workspace starter dev - Access the application at: http://localhost:3000 Access Admin Console at: http://localhost:3000/fr/admin
- Start the development server by running:
- Storybook:
- Start the development server by running:
yarn workspace starter storybook:dev - The application should automatically open in your browser. If it does not, you can manually access it at: http://localhost:6006
- Start the development server by running:
- Doc Development mode:
- Start the development server by running:
yarn workspace documentation dev - Access the application at: http://localhost:3000
- Start the development server by running:
Running Vactory Next in Docker
- Configure the
.envfile: Ensure all necessary environment variables are set by referring to the example file located atapps/starter/.env.example. - Modify
docker-compose.yml: Activate ports forservices.starterandservices.cacheto ensure proper communication. - Build the Docker image: Execute the command
docker compose buildto create the Docker image necessary for running your application. - Launch the application: Use
docker compose up -dto start your application in detached mode. This keeps the containers running in the background. - Access the application: Navigate to
http://localhost:3000in your web browser to view and interact with the application.
