Skip to content

BoykoPetevBoev/SoftUni-JS-Back-End-May-2020

Repository files navigation

JS-Back-End-May-2020

JS-Back-End-May-2020


За курса

Курсът е интензивен и цели да запознае учащите с разработката на сървърни JavaScript приложения върху платформата Node.js, използвайки Express.js, като framework. По време на обучението ще разберем как да създадем сървър с Node.js, ще се научим на сървър-клиент архитектурата и как да правим лесни и бързи data-driven web приложения с Node.js, Express.js и MongoDB, използвайки съвременни похвати и инструменти.

Умения

  • Какво е Web Server?
  • Сървърни приложения с Node.JS
  • MVC архитектура
  • Основни познания по HTTP протокола
  • Работа с нерелационни бази данни
  • Създаване на приложения с Express и Handlebars

Теми

  • Introduction to Node.js
    • Event Loop
    • Modules
    • Request and Response Wrapper
    • Node.js Web Server
    • Streams
    • Pub/Sub Pattern
    • Events
    • FS Module
    • Debugging
  • Express
    • Introduction
    • Router
    • Middleware
  • Static Files
    • View Engines
    • Templating Concepts
    • Handlebars
  • NoSQL and MongoDB
    • Relational and Non-Relational
    • Databases
    • MongoDB and Mongoose Overview
    • Mongoose Models
    • CRUD with Mongoose
    • Mongoose Querying
  • Sessions and Authentication
    • Cookies and Sessions
    • Authentication Concepts
    • JSON Web Token
    • Authentication Strategies
  • Validation
    • Why and how validate data
    • Validating and sanitization data with express-validator
    • Mongoose validation
  • Error Handling
    • Different types of errors

Terminal Cheat Sheet

Commands Notes
mkdir create new directory
rmdir <FolderName> remove directory
touch <FileName> create new file
open open file
rmd delete file
explorer . ppen a file explorer in current directory

Working with Git

Commands Notes
git init initializes the repository
git chechout master use master branch
git chechout -b <BranchName> create new local branch
git branch -d <Branchname> deletes local branch
git push origin master send changes to the master branch of your remote repository
git pull fetch and merge changes on the remote server to your working directory
git status show those unknown files
git add . add those unknown files
git commit -m "message" commit all changes
git push push changes in GitHub

Git commit in Master

  1. git status
  2. git add .
  3. git commit -m "message"
  4. git push

Git commit in branch

  1. git checkout master
  2. git pull
  3. git checkout -b "branch-name"
  4. ...
  5. git status
  6. git add .
  7. git commit -m "message"
  8. git push --set-upstream origin branch-name

Links

Website URL
Conventional Commits https://www.conventionalcommits.org
Express https://expressjs.com
Mongodb https://www.mongodb.com/
Mongoose https://mongoosejs.com
npm https://www.npmjs.com
SoftUni https://softuni.bg
Handlebars https://handlebarsjs.com
The Practical Test Pyramid https://martinfowler.com