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 v18.18.2 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). - Activate cache ports in the
docker-compose.yml
file by uncommenting them. - Run Redis cache with Docker by executing:
docker compose up cache -d
- Build custom packages (console and core) the first time you clone the project by running:
yarn workspace @vactory/console build && yarn workspace @vactorynext/core build
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:
Notes:
- If you encounter errors related to undefined data, ensure all necessary variables are configured at http://localhost:3000/fr/admin/features
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.