Website for diffractwd product diffractwd.com
Website Diffractwd - support of corresponding project
- Rect & Typescript
- Next JS as Framework
- Shipped with Docker
- Terraform for Infrastructure
- Start local development
npm run dev
- Build project
npm run build
- Start project
npm start
- Run linter
npm run lint
- Install playwright
npm install playwright@latest
- Run test with command line
npm test
- Run test locally with UI
npm test:ui
- Build Docker file locally
docker build -t europe-west3-docker.pkg.dev/diffractwd-com-418922/diffractwd/diffractwd-com:latest .
- Start Docker file
docker run --network=host europe-west3-docker.pkg.dev/diffractwd-com-418922/diffractwd/diffractwd-com:latest
- Push docker to registry
docker login & docker push europe-west3-docker.pkg.dev/diffractwd-com-418922/diffractwd/diffractwd-com:latest
## Creating infrastructure
* Install gcloud according to [instructions](https://cloud.google.com/sdk/docs/install)
* Auth with gcloud sdk
```bash
gcloud auth application-default login
- Create Google Cloud project (use your own PROJECT_ID & PROJECT_NAME)
gcloud projects create "PROJECT_ID" --name="PROJECT_NAME"
- Modify environment variables
code terraform.tfvars
-
Verify your domain https://developers.google.com/search
-
Initialize terraform
terraform init
- Plan Terraform changes
terraform plan
- Deploy Terraform changes
terraform apply
- Website: vreshch.com
- Email: [email protected]