Devmode
Running the application in development mode
If you want to run the Xyne application in dev mode, this guide will help you do so
Deployment of Xyne on Local Machine requires the following dependencies to be installed:
Set-Up Xyne Locally in Dev Mode
To Set-Up Xyne, follow the steps listed below :
Clone the Xyne Repository :
Run the following command to clone the repository :
Setup Environment variables:
The application is dependent on some environment variables that you will need to set up.
Inside the server
folder, create a .env.development
file using :
In the .env.development
file, you can paste the following :
Set up Docker
Set up docker by running the follow command :
Running this command will host vespa and postgres containers inside your docker.
Set permission to run the init-script
We first need to set the executable permission to run the init-script, for that, run the following command :
Run the init-script to initialize the application
Navigate to the server folder using cd server
and run the following commands :
This will initialize all the dependencies required by the server to run the application successfully,
and will also start the server, which will be listening on port 3000
.
Start the Xyne client
To start the client side, navigate to the frontend
folder :
Client side .env
Create a new .env
in the frontend
folder, use the following command :
Now paste the following inside the .env
file :
Save the file.
This installs all dependencies required by the client side to run.
Then start the client using the command :
The app will now be available in port 5173
. Go to xyne