This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source: https://architecture.md | |
| [Project Root]/ | |
| ├── backend/ # Contains all server-side code and APIs | |
| │ ├── src/ # Main source code for backend services | |
| │ │ ├── api/ # API endpoints and controllers | |
| │ │ ├── client/ # Business logic and service implementations | |
| │ │ ├── models/ # Database models/schemas | |
| │ │ └── utils/ # Backend utility functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.env.NODE_ENV="production"; | |
| if(process.env.NODE_ENV === 'production') { | |
| // We are running in production mode | |
| } else { | |
| // We are running in development mode | |
| } | |
| console.log(`We are running in ${process.env.NODE_ENV} mode 🏃♂️`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## What? | |
| ## Why? | |
| ## How? | |
| ## Testing? | |
| ## Screenshots (optional) | |
| ## Anything Else? | |
| ## Ticket: | |
| ## Reproduction: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const MyCard = (props) => { | |
| const { item } = props; | |
| const defaultImgUrl = 'path to image' | |
| const handleError = (event) => { | |
| event.target.src = defaultImgUrl; | |
| }; | |
| return ( | |
| <div> | |
| <h1>item.name</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Open terminal and plug in the following | |
| code ~/.zshrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Node | |
| node_modules | |
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Icon must end with two \r | |
| Icon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.algoexpert.io/questions/Two%20Number%20Sum | |
| // Solution 1 | |
| function twoNumberSum(array, targetSum) { | |
| let arr = array; | |
| let target = targetSum; | |
| let pairedNumbers = []; | |
| for (let i = 0; i < array.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ====================================== | |
| CSS Reset | |
| https://dev.to/hankchizljaw/a-modern-css-reset-6p3 | |
| Box sizing rules | |
| ========================================= */ | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## How to hide API keys from github ## | |
| 1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
| retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
| 2. In the terminal, create a config.js file and open it up: | |
| touch config.js | |
| atom config.js |