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
| Backend Crash Course | |
| I - Setup | |
| //////////////////////////////////////////// | |
| 1. Create Repo In GitHub With Your Project Name (Check README.md) | |
| 2. Get On Your Terminal | |
| 3. cd | |
| 4. git clone git@github.com{PROJECT_SSH_URL} | |
| 5. cd RepoName |
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 STRUCTURE YOUR BACKEND CODE IN NODE.JS(express.js). | |
| 📁 | |
| ├── 📄 app.js | |
| ├── 📁 bin | |
| ├── 📁 config | |
| ├── 📁 controllers | |
| │ ├── 📄 customer.js | |
| │ ├── 📄 product.js | |
| │ └── ... |
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
| Method 1 | |
| 1. go to github.com..Click on your repos and make a new repository | |
| 1.1 give a name | |
| 1.2 select public or private | |
| 1.3 check on add readMe and click create new repo | |
| 2. copy the ssh code | |
| 3. go to your terminal | |
| git clone sshcode -> to clone your terminal with repository | |
| 4. cd reponame -> to go inside the repo and to create files or folders |
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
| Cron Job | |
| A Cron Job is a Linux command for scheduling a task (command). Cron Jobs allow you to automate specific commands or scripts on your server to complete repetitive tasks automatically. | |
| Cron Job is of two types | |
| 1. Time based | |
| 2. Interval Based | |
| 1.1 Time based is on Alarm which is one time completed |
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
| Linux Basic Commands | |
| Package installation | |
| Sudo apt install packagename. | |
| Python3 -m http.server 8080 (for converting the machine into web server). | |
| Ifconfig for IP address | |
| Softlink(ln -s filename) | |
| Hardlink(ln filename) |
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
| Linux Basic Commands | |
| move mv | |
| copy cp | |
| rename mv name and new name | |
| touch | |
| hidden file show command ls -a | |
| echo | |
| nano | |
| htop |
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
| Introduction to Number System | |
| It is a way of representing nos in different types. | |
| Types in number system are: | |
| 1) Decimal NS (10): | |
| 0,1,2,3,4,5,6,7,8,9 | |
| 2) Binary NS (2): | |
| 0,1 | |
| 3) Octal NS (8): | |
| 0,1,2,3,4,5,6,7 | |
| 4) Hexadecimal NS (16): |
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
| SSH Keygen Command | |
| ssh-keygen -t ed25519 -C "GITHUB EMAIL YOURS" | |
| Press 3 times enter then | |
| cd | |
| cd .ssh | |
| cat id_ed25519.pub | |
| Copy the public key and paste in | |
| GitHub ==> Settings ==> SSH and GPG Keys ==> Add New SSH Key |