- If a repository has no license, then all rights are reserved and it is not open-source or free
- Public repositories on GitHub are often used to share open source software
- MIT license gives users express permission to reuse code for any purpose, sometimes even if code is part of proprietary software
- As long as users include the original copy of the MIT license in their distribution, they can make any changes or modifications to the code to suit their own needs
- most simple open source license agreement
- bash shell script file
- like batch files of Windows which can be executed in Linux or Unix
- Bash is a Unix shell and command language which can run Shell Script files
- scripting language commands file to be run by Unix shell
- #!/bin/bash
- uses Bourne Again Shell / bash
- executing a .sh file is like writing the commands in the terminal
- Use a named export to export a type in TypeScript
- The exported type can be imported by using a named import
- Generic Types
<T>
- ??? TODO
- indicates that the directory is the root of a TypeScript project
- specifies the root files and the compiler options required to compile the project
- generate tsconfig json file
- for any node project
- records important metadata about a project
- defines functional attributes of a project that npm uses to install dependencies, run scripts, and identify the entry point to our package
- generate package.json
npm init
npm install <pkg> --save
- to install a dependency and automatically append it to your package.json's dependencies list
- As of npm 5.0.0 (2017), installed modules are added as a dependency by default
-
automatically generated for any operations where npm modifies either the node_modules tree, or package.json
-
stores an exact, versioned dependency tree rather than using starred versioning like package.js ref
-
package.json contains only your direct dependencies, not the dependencies of your dependencies
-
hidden files/folders
-
- keep stuff out of your package
- npm will use .gitignore if no .npmignore
- empty .npmignore file to override .gitignore
- want to include something that is excluded by your .gitignore file
-
- reference
- specifies intentionally untracked files that Git should ignore
-
- a configuration file for a tool named ESLINT
- ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and avoiding bug red
- https://eslint.org/docs/latest/user-guide/getting-started
- https://eslint.org/docs/latest/user-guide/configuring/configuration-files
- Lint, or a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs
-
- customize your individual working environment variables
- contains key/value pairs defining the project's required environment variables
- In this file we set a variable with value and that you wouldn’t want to share with anyone, purpose of file is keep as secret and secure because in .env file we store our database password, username, API key etc…
- example
- can use these variables in your Node JS project
-
dot dockerignore
- Ignores files to speed up docker build process
- otherwise the "Sending build context to Docker daemon" takes forever
- Using dockerignore
- Docker Build Context (Why You Should Use Dockerignore)
-
- Should I commit the .vscode folder to source control
- workspace settings
- launch.json
- data.json
- JSON (JavaScript Object Notation)
- A collection of name/value pairs
- An ordered list of values
- random data for an object fitting the therapist schema i guess?
- JSON (JavaScript Object Notation)