- Check if the package has a website
- Search for the package on npmjs.com
- Look for a GitHub repository
- Check the package's README.md
Git is a powerful tool, but it can be a bit tricky to use. Here are some common problems, espectially while working on a team and how to solve them.
Merge conflicts occur when two people have changed the same lines in a file. Git can't automatically determine which changes to keep, so it asks you to resolve the conflict.
There are 2 main ways you will find out about a merge conflict:
-
Create a new repository on GitHub (Do not initialize with a README or add a .gitignore or license), you will then be lead to a new page, look for this and copy the HTTPS or SSH url of the repository:
-
Open your terminal with the project folder open in VSCode (Make sure you are in the root directory of your project)
-
Initialize the local directory as a Git repository:
Download the installer from this link https://github.com/coreybutler/nvm-windows/releases/download/1.1.10/nvm-setup.exe Leave all the default options (unless you know what you're doing)
Using the program "Git Bash" (You should have installed this in a previous step), you should be able to verify installation of NVM by entering the following command:
nvm -v
This should give you an output with some information about the NVM version (if it was not installed you will see "bash: nvm: command not found"
If it is installed correctly, you can now install the latest version of node using it with this command: nvm install lts
Using the "Terminal" application, enter the following to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "# Homebrew\nexport PATH=/opt/homebrew/bin:\$PATH" >> ~/.zshrc
source ~/.zshrc
Then, enter the following to install NVM using Homebrew:
brew update
openapi: '3.0.2' | |
info: | |
title: Project 1 API | |
description: An example API with CRUD operations | |
version: '1.0' | |
servers: | |
- url: http://localhost:3000/api | |
paths: | |
/users: | |
get: |
- Initialized ExpressJS project as per this gist
project-root
├── node_modules
├── package-lock.json
- Initialized
npm
project withpackage.json
file. See: Getting started withnpm
. express
installed as project dependency.- Entry page (i.e.
server.js
) present in the project root.
project-root