Skip to content

Instantly share code, notes, and snippets.

View ritikbanger's full-sized avatar
🎯
Focusing

Ritik Banger ritikbanger

🎯
Focusing
View GitHub Profile
Commit type Emoji
Initial commit 🎉 :tada:
Version tag 🔖 :bookmark:
New feature :sparkles:
Bugfix 🐛 :bug:
Metadata 📇 :card_index:
Documentation 📚 :books:
Documenting source code 💡 :bulb:
Performance 🐎 :racehorse:
@ritikbanger
ritikbanger / codeReview.md
Last active March 5, 2024 13:00
React Frontend Code Review- Checklist (Master Code Review)

React Frontend Code Review- Checklist (Master Code Review)

  • Keep the components small, If the size exceeds 200-300 lines then create child components.
  • JSX markup should be no more than 50 lines.
  • Every function should have comments over it describing what it do.
  • Code has no linter errors.
  • If there are any React warnings reported in console, please solve that for example, Provide a key prop with a unique value for each element in array.
  • Do not repeat your code (DRY).
  • Code is in sync with existing code patterns.
  • No unused props are being passed.
@ritikbanger
ritikbanger / knex-setup.md
Created January 20, 2022 09:55
Guide to setup Knex Query Builder with your NodeJS project.

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@ritikbanger
ritikbanger / apigateway.tf
Created December 24, 2021 07:31
AWS API Gateway with greedy path (proxy+) calling httpbin. (Terraform)
resource "aws_api_gateway_rest_api" "MyDemoAWSAPI" {
name = "MyDemoAWSAPI"
description = "This is my API for demonstration purposes"
}
resource "aws_api_gateway_resource" "MyDemoResource" {
rest_api_id = aws_api_gateway_rest_api.MyDemoAWSAPI.id
parent_id = aws_api_gateway_rest_api.MyDemoAWSAPI.root_resource_id
path_part = "{proxy+}"
}