Litmus Portal
Local development
Set up backend environments
- Install dependencies Go to the backend folder and install modules defined in go.mod
go mod download
- Create database
go run scripts/gqlgen.go init
- Install air if you want hot reloading you can use hot reoloading with air.
air
Set up frontend environments
Go to the fronend folder and run the following commands.
npm install
npm run start
Production deployment
First, go to the project root directory and enable bash files
sudo chmod 777 start_k8s.sh
sudo chmod 777 remove_k8s.sh
sudo chmod 777 deploy_production.sh
- Deploy
start_k8s.sh
- Remove pods/services/deployments
remove_k8s.sh