Skip to content

Instantly share code, notes, and snippets.

🐼
Inner Peace

Thamaraiselvam thamaraiselvam

🐼
Inner Peace
Block or report user

Report or block thamaraiselvam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thamaraiselvam
thamaraiselvam / tasks.txt
Last active Jan 9, 2020
NodeJs Dev Dojo
View tasks.txt
Task 1: Problem Statement:
Run a nodejs server and create GET, POST, DELETE, PUT endpoints.
AC:
1. Should run on 3000 port
2. Should accept GET Request /hello with name param and it should return output `hello <name>`. Example: /hello?name=pasu
3. Should accept POST Request /new with name param (body) and it should return output `hello <name> - you have got new request`
3. Should accept PUT Request /update with name param (body) and it should return output `hello <name> - you have got have got new update request`
View solon-commands.sh
Create Cluster
./bin/stolonctl --cluster-name stolon-cluster --store-backend=etcdv3 init
Start sentinal
./bin/stolon-sentinel --cluster-name stolon-cluster --store-backend=etcdv3
Create first keeper
./bin/stolon-keeper --cluster-name stolon-cluster --store-backend=etcdv3 --uid postgres0 --data-dir data/postgres0 --pg-su-password=supassword --pg-repl-username=repluser --pg-repl-password=replpassword --pg-listen-address=127.0.0.1 --pg-port 9000
Create second keeper
View Go Env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/thamaraiselvam/Library/Caches/go-build"
GOENV="/Users/thamaraiselvam/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
View gist:9b510a7ea0f096caf85850abaca22445
Boy Scout Rule:
Always leave the codebase cleaner than you found it
Code Smells:
It is not a bug but hint of problem that makes your code difficult to understand, extend or maintain
Types:
1.Long Method
Method that does multiple things(Againts SOLID Principles)
@thamaraiselvam
thamaraiselvam / MEAN Stack Cheat Sheet.md
Last active Jul 2, 2019
This is my MEAN Stack cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View MEAN Stack Cheat Sheet.md

MEAN Stack Cheat-Sheet

Those who want to become a Full Stack Developer their first choice is MEAN Stack because it has a lot of scopes and easy to learn as well but preparing is hard so Here's a Cheat Sheet - Inspired by The Technical Interview Cheat Sheet.md

Cheating

This list is meant to be both a quick guide and reference for further research into these topics. It's basically a summary of important topics, there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

What the heck is MEAN Stack

View MEAN FINAL SESSION
Morning Session:
Debug Applications faster:
☐ Angular -> Debug via Chrome Dev Tools
☐ NodeJS -> Auto Attachment
Angular :
Component Communication:
☐ Parent -> Child Via @Input
☐ Child -> Parent Via @ViewChild
☐ Child -> Parent Via @Output EventEmitters
View Angular
Introduction:
☐ What is Angular?
☐ Why is Angular?
Start:
☐ How to Install?
☐ How to create App?
☐ How to run App?
Architecture:
View Node
OOP concepts - DONE
Class, Constructors, Inheritance/asbstract, Extendable, Methods, Typescript - DONE
Database:
RDBMS:
Queries , Joins, Normalization, Advantages, Disadvantages
Mongo Queries, Replica set, Sharding, Advantages, Disadvantages
Difference between mysql no sql
online nosql services
elastic search
View Technical deep
Pair programming
- State what you know
- Ask questions
- Start Simple
- Should be extendable
- Write tests
Data structure
-------------------
tree ( Eg: Filesystem tree, PATH /usr/home/tom)
View Database - MongoDB
MongoDB Design patterns based on application usage perspective:
The scheme depends on your application use case
Data Access Patterns
Number of reading vs update
what is the size of expected documents
Performance issues in MongoDB:
Schema Design:
{
You can’t perform that action at this time.