First, download nvm-setup.exe
for windows here And follow the installation instructions.
When nvm is installed, in powershell:
echo "Verify installation of nvm"
nvm -v
echo "Install latest version of node"
nvm install lts
echo "Use the installed version of node"
nvm use [version]
echo "Verify the node installation"
node -v
Setup node in the backend folder with npm install
.
Install the redis server in a WSL2 instance:
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update && sudo apt-get ugprade -y
sudo apt-get install redis
Start the redis server:
sudo service redis-server start
Test the installation:
redis-cli
127.0.0.1:6379> ping
PONG
Lastly, complete the .env file with the correct information.
Setup the frontend folder with npm install
Launch the server from the backend folder and with:
node ./app.js
Launch the frontend app from the frontend folder and with:
npm run dev