Add .env file
BASE_URL=YOUR_URL
Run
npm run devOpen http://localhost:3000 with your browser to see the result.
Run
npm run buildFiles will be located in build folder
The repository includes deploy.sh file for easy deployment to Uni of Helsinki CS department servers.
First step is to install sshpass
sudo apt update
sudo apt install sshpass- Create
.envfile - Create env variable USERNAME:"YOUR-USERNAME"
- Create env variable PASSWORD:"YOUR-PASSWORD"
- Create env variable BASE_PATH:"YOUR-BASE-PATH", for university config it is
/u/username - Make script executable
chmod +x deploy.sh- Run it
./deploy.sh