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/v3
branch. - Install project packages by running:
yarn install
Configuration:
- Configure the
.env
file with the necessary variables (refer toapps/starter/.env.example
for 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
.env
file: 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.starter
andservices.cache
to ensure proper communication. - Build the Docker image: Execute the command
docker compose build
to create the Docker image necessary for running your application. - Launch the application: Use
docker compose up -d
to start your application in detached mode. This keeps the containers running in the background. - Access the application: Navigate to
http://localhost:3000
in your web browser to view and interact with the application.