- Install required font.
npx expo install expo-font @expo-google-fonts/<Name-of-font>
- Add Plugin code into 'app.json' file
| | Type | Used For | | |
| | ---------- | ------------------------------------- | | |
| | `feat` | New feature / endpoint | | |
| | `fix` | Bug fix | | |
| | `refactor` | Code restructure (no behavior change) | | |
| | `perf` | Performance improvement | | |
| | `test` | Adding/updating tests | | |
| | `docs` | Documentation changes | | |
| | `build` | Docker, dependencies, CI | |
| kind: Cluster | |
| apiVersion: kind.x-k8s.io/v1alpha4 | |
| nodes: | |
| - role: control-plane | |
| - role: worker | |
| - role: worker | |
| - role: worker | |
| #* Use official NodeJS image as the base - Stage 1 (Builder stage) | |
| FROM node:22-alpine AS builder | |
| #* Create and Change to the app dir | |
| WORKDIR /ex-app | |
| #* Copy the package.json & package-lock.json files to /ex-app dir | |
| COPY package*.json . | |
| #* Install all the dependencies |
| 1. terraform plan | |
| --> The `terraform plan` command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. | |
| --> Good practice to use this before upload or apply any configuration file | |
| 2. terraform validate | |
| --> It checks all the errors in code | |
| 3. terraform apply | |
| --> This command is most important, when we apply this command then all the configurations written into config file that get configured as per configurations. | |
| --> The terraform apply command executes the actions proposed in a Terraform plan. |
| name: BLOG'S WORKFLOW | |
| run-name: Actions number ${{github.run_number}} | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| build_next_app: |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: frontend-deployment | |
| labels: | |
| app: frontend | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: |
| #* For execute the key of EC2 instance terminal | |
| chmod 400 key.pem | |
| #* connect terminal in local machine | |
| ssh -i <key-name>@<host-ip> | |
| #* Install nvm (node version manager) for latest node on AWS cloud | |
| Step 1 | |
| > Go to official site and copy paste the installation link of nvm | |
| Step 2 |
| -- Active: 1701163633093@@localhost@5432@test | |
| --! Create new database | |
| CREATE DATABASE LEARN; | |
| --! Drop database | |
| DROP DATABASE LEARN; | |
| version: "3" | |
| volumes: | |
| db_vol: | |
| name: "postgres-vol" | |
| pg_admin-vol: | |
| services: | |
| # Adminer Container | |
| pg_admin: |