Posts

Showing posts from April, 2019

Introduction of React

Image
React is a library based on components that are used to develop interactive user interfaces. It is currently one of the most popular front-end JavaScript libraries with a strong foundation and support from a large community. NOTE: ReactJS is just a front-end library and not the entire framework dealing with MVC's View component (Model–View–Controller). Everything's a component in ReactJS. Consider a Lego house as a whole application. Then compare each of the lego blocks to a building block component. To build a larger and dynamic application, these blocks/components are integrated together. The greatest advantage of using components is that at any point in time you can change any component without affecting the rest of the applications. When implemented with larger and real-time applications where data changes frequently, this feature is most effective. ReactJS automatically updates the specific component whose state has actually changed every time any data is added or ...

Basic GIT commands

1. Create a New Repository # Create a new Git repository in the current directory. $ git init # Create a new directory and initialize it to the Git repository. $ git init [project-name] # Download a project and its entire code history. $ git clone [url] 2. Configuration The setting file for Git is  .gitconfig , which can be placed under the user's home directory (global configuration) or under the project directory (project configuration). # Display the current Git configuration. $ git config -- list # Edit Git Configuration File. $ git config -e [-- global ] # Set the user information when submitting code. $ git config [-- global ] user.name "[name]" $ git config [-- global ] user.email "[email address]" 3. Add/Delete Files # Add the specified file to the Index. $ git add [file1] [file2] ... # Add the specified directory to the Index, including subdirectories. $ git add [dir] # Add all the files in the current directory to the Index. ...

What is MongoDB?

Image
MongoDB is an unstructured database that is popular for speed, easy-to-use, and scalability. The problem with Structured Data A relational database follows a column-defined structure in a table. Using SQL (Structured Query Language), you communicate with a relational database. The problem with a structured database is that it can become too structured to create and design a good database, requiring a lot of resources. For example, If you have a table with five columns for customer details but one particular customer has an extra detail you didn't account for; this would be a real pain to solve in an RDBMS model. The Solution NoSQL (Not only Structured Query Language) is a new type of database. Also known as an unstructured database is a NoSQL database. MongoDB is a particular type of unstructured database called a document database. A document database has a list of key-value pairs. Instead of having our data be rows inside a structured table, we can literally redra...