Skip to content

One-week Node.js & Express.js course: exercises & solutions for JavaScript beginner to understand various concepts to be able to build API backend server.

Notifications You must be signed in to change notification settings

scallops-cloud/nodejs-basic-course

Repository files navigation

Node.js Basic Course

The course was designed for the Generation Thailand JSD Program. It is a one-week course for the students to learn the basic of Node.js and Express.js.

How to use this course?

  1. Clone this repository to your local machine.
git clone git@github.com:scallops-cloud/nodejs-basic-course.git
  1. Checkout a new branch to work on, to avoid the conflict with the new workshop update. (You may use other branch name you prefer.)
cd nodejs-basic-course
git checkout -b exercise-work
  1. Check the slide if available for the exercise, then try to work on the code in the exercise folder.

  2. Commit once you are done to save the changes. Check the solution to compare the result.

Content

01 - Node.js Basic

📽️ Slides:

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/01-node-intro/exercises

02 - Project Todo CLI

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/02-project-todo-cli/exercises

03 - Express Basic

📽️ Slides:

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/03-express-intro/exercises

04 - Project Todo API

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/04-project-todo-api-v1/exercises

05 - CRUD & Rest API

📽️ Slides:

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/05-crud-rest-api/exercises

06 - Authentication

📽️ Slides:

🧪 Workshop

https://github.com/scallops-cloud/nodejs-basic-course/tree/main/06-authentication/exercises

How to update the content

  1. Ensure we are at the working branch ex. exercise-work. And no uncommitted changes.
git status

Expected result:

On branch exercise-work
nothing to commit, working tree clean
  1. If the branch is not clean, commit all existing uncommitted changes first.
git add .
git commit -m "Day 1's work"
  1. Checkout main branch.
git checkout main
  1. Pull the new changes
git pull
  1. Switch back to working branch (can be other branch name you used).
git checkout exercise-work
  1. Merge the new change to the exercise-work branch.
git merge main

How to push working branch to your own repository?

  1. Fork this repository to your own account.

  2. Check the remote repository.

git remote -v

Expected result:

origin  git@github.com:scallops-cloud/nodejs-basic-course.git (fetch)
origin  git@github.com:scallops-cloud/nodejs-basic-course.git (push)
  1. Add your own repository as a remote repository.
git remote add myrepo YOUR_GITHUB_REPO_URL

For example:

git remote add myrepo git@github.com:turboza/nodejs-basic-course.git
  1. Push the working branch to your own repository.
git push myrepo exercise-work

About

One-week Node.js & Express.js course: exercises & solutions for JavaScript beginner to understand various concepts to be able to build API backend server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published