Entradas

Mostrando las entradas de julio, 2022

Install npm lite-server for automatic update in your browser

Imagen
This is a basic step by step on how to install npm lite server. Requirements: create a project and open it in vsc or atom. node and npm installed. Open power shell and access the folder were your project is, and check the current node and npm version by typing the command prompt  node -v and npm -v To start, we are going to  create a package. json file,  typ e the  co mmand prompt npm init press enter and fill in all the info. asked (description, name, author etc...): when you about to finish it will show you something like this:  press enter and you can now check what is in the folder by using the command prompt  ls you see now a package.json folder, awesome!  after this,  you are going to type the command prompt  to install the lite-server. (This can take a few minutes) npm install lite-server --save-dev yarn add lite-server --dev # or yarn go now to vsc, in your project you will found a new document called packag...

Mastering Git Commands: A Beginner's Guide to Git and GitHub

Imagen
Hey there! Ever wondered how developers keep track of all their code changes without losing their minds? The secret sauce is Git. And when you pair it with GitHub, you get a powerful combo for managing and collaborating on code. Whether you’re just dipping your toes into the coding world or looking to level up your version control game, this guide will get you up to speed on the essential Git commands. What’s the Deal with Git and GitHub? Git  is a version control system that helps you track changes to your code over time. Imagine it as a magical undo button that lets you go back to previous versions of your project. It also makes it easy to collaborate with others without stepping on each other’s toes. GitHub  is like a social media platform for developers. It hosts your Git repositories and makes it easy to share your code with others, collaborate on projects, and even showcase your work to potential employers. Now, let’s dive into some Git basics and essential commands that...