/litmus-portal

Contains the frontend and backend for Litmus portal

Primary LanguageCSS

Litmus Portal

Local development

Set up backend environments

  1. Install dependencies Go to the backend folder and install modules defined in go.mod
go mod download
  1. Create database
go run scripts/gqlgen.go init
  1. 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
  1. Deploy
start_k8s.sh
  1. Remove pods/services/deployments
remove_k8s.sh