How to assign dynamic values to the Window object?How to go through the DOM objects using TypeScriptHow to add event handlers to elements in the DOM using TypeScriptUsing fetch method with TypeScriptAsync await and Promises with TypeScriptPayload validation with TypeScript
Mar 18, 2024Contributed by
Understanding "Type X is not assignable to type Y"
Mar 15, 2024Contributed by
//1.4 How to check if a string is part of an Enum?
Mar 03, 2024Contributed by
As a user, I can choose to start a conversation with providing diagnosis or a random disease for the chatbot
Dec 15, 2023Contributed by
1. CSS Selectors and Specificity CSS Selector Priority: Hierarchy - Inline styles > IDs > Classes, attributes, and pseudo-classes > Elements and pseudo-elements. CSS selector priority is the machanism that CSS use to determine which element will be selected. Specificity Calculation: Count 1 for each element and pseudo-element, 10 for each class, attribute, and pseudo-class, 100 for each ID, and 1000 for inline styles. CSS Pseudo Classes: Used to define a special state of an element (e.g., a:hover for hovering state). CSS Pseudo Elements: Used to style a specific part of an element (e.g., p::first-letter styles the first letter). Inappropriateness of CSS Generated Content: Not accessible by screen readers, not selectable or copyable, doesn't change with user language settings. 2. AJAX and JavaScript
May 17, 2023Contributed by
CoderManagement CoderManagement is a platform that helps individuals and teams manage their tasks. These are more than just simple to-do lists. Task management tools allow teams to collaborate digitally by organizing, prioritizing, and assigning tasks to each other. So what exactly does task management software do? As with most software, there is a range of complexity and technological advancement among different systems. With that being said, typical features include: Task scheduling to set deadlines in advance. Task customization and editing to update for specific situations. Task assignment, which may include internal coworkers, external partners, or both.
Jul 06, 2022Contributed by
Installing Compass Download MongoDB Compass from this. What is MongoDB Compass? MongoDB Compass is a powerful GUI (graphical user interface) for querying, aggregating, and analyzing your MongoDB data in a visual environment. What we can do with Compass? - Connect to your deployment Connect to a MongoDB deployment hosted on MongoDB Atlas, or a deployment hosted locally on your own machine.
Jul 04, 2022Contributed by
You can choose between installing MongoDB using comand line (instruction below) and download the package from here Installing MongoDB for MacOS There are two way of installing MongoDB on MacOS: using Homebrew or using .tgz tarball. Find one that fit you. According to MongoDB Docs, if you can, it's better use Homebrew 1. Let's start installing using Homebrew Install Xcode Command-Line Tools Homebrew requires the Xcode command-line tools from Apple's Xcode. Run this command to install Xcode command-line xcode-select --install
Jun 25, 2022Contributed by
Project structure Your project folder will look like: |- controllers/ |- auth.controller.js |- category.controller.js |- order.controller.js |- product.controller.js |- review.controller.js |- user.controller.js
Jun 24, 2022Contributed by
Overview We continue using Mongoose and Mongo to build our database. Building schemas is creating rules of a collection that we could access documents with ease since their structure are consitent. As our app grows, we would have many collections. Some are isolated and some are relating to others. Any DBMS will give us many options create these connections and also methods access data through them. Our database could be like a temple, skyscrapper or a labyrinth... each will serve different purposes; has pros and cons. Sometimes this art form called database architecture. Discussion Shopping Cart Every ecommerce websites are different. Some allow user to have as many shopping cart at once as the user want. Some only allow 1 cart at a time however still keeping the history of all previous cart. We will focus on the later one.
Jun 22, 2022Contributed by
What Is Mongoose? Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB. What is a Schema? A schema is a JSON object that defines the the structure and contents of your data. Schemas represent types of data rather than specific values. MongoDB is a schema-less NoSQL document database. It means you can store JSON documents in it, and the structure of these documents can vary as it is not enforced like SQL databases. This is one of the advantages of using NoSQL as it speeds up application development and reduces the complexity of deployments. Here is example how data is stored in Mongo
Jun 22, 2022Contributed by
Relationships in MongoDB represent how various Documents are logically related to each other. Relationships can be modeled via Embedded and Referenced approaches. Such relationships can be either one-to-one, one-to-many relationship. These relations can be implemented in two ways: Using embedded Documents Using the reference of Documents of another Collection. We'll discuss on a specific relation that we mostly use in the scope of our course. Feel free to figure out the rest after you master this one-to-many relationship with Document reference vs. with embeded Document. Embedded Documents
Jun 22, 2022Contributed by