HOME > Development > Build An Online Chess Game

Build An Online Chess Game

  • Development
  • Apr 24, 2025
SynopsisBuild An Online Chess Game, available at $54.99, has an avera...
Build An Online Chess Game  No.1

Build An Online Chess Game, available at $54.99, has an average rating of 4.15, with 64 lectures, based on 21 reviews, and has 173 subscribers.

You will learn about How to use NodeJs to create a backend How to use SocketIO How to use MySQL with NodeJs How to use Redis with NodeJs How to create an online game using NodeJs and SocketIO How to use a view engine with NodeJs How to use VanillaJs to update or create DOM Elements How to make client-server communication using SocketIO How to make a Chess game using Javascript This course is ideal for individuals who are Javascript developers who want to learn how to create a server or Javascript developers who want to learn how to use socketio or Javascript developers who want to learn how to create an online game or Javascript developers who want to learn how to use nodejs with mysql, redis and socketio It is particularly useful for Javascript developers who want to learn how to create a server or Javascript developers who want to learn how to use socketio or Javascript developers who want to learn how to create an online game or Javascript developers who want to learn how to use nodejs with mysql, redis and socketio.

Enroll now: Build An Online Chess Game

Summary

Title: Build An Online Chess Game

Price: $54.99

Average Rating: 4.15

Number of Lectures: 64

Number of Published Lectures: 64

Number of Curriculum Items: 64

Number of Published Curriculum Objects: 64

Original Price: 19.99

Quality Status: approved

Status: Live

What You Will Learn

  • How to use NodeJs to create a backend
  • How to use SocketIO
  • How to use MySQL with NodeJs
  • How to use Redis with NodeJs
  • How to create an online game using NodeJs and SocketIO
  • How to use a view engine with NodeJs
  • How to use VanillaJs to update or create DOM Elements
  • How to make client-server communication using SocketIO
  • How to make a Chess game using Javascript
  • Who Should Attend

  • Javascript developers who want to learn how to create a server
  • Javascript developers who want to learn how to use socketio
  • Javascript developers who want to learn how to create an online game
  • Javascript developers who want to learn how to use nodejs with mysql, redis and socketio
  • Target Audiences

  • Javascript developers who want to learn how to create a server
  • Javascript developers who want to learn how to use socketio
  • Javascript developers who want to learn how to create an online game
  • Javascript developers who want to learn how to use nodejs with mysql, redis and socketio
  •          In this course we are going to create from scratch a complete online chess game. Also we are going to setup a MySQL database to store the users info (username, email, score, played games etc.) and we are going to use also Redis. We are going to set up a basic express server, and for our view engine we are gonna use ejs. For our server we are going to use different routes to displaying the pages and different routes for the api. We are going to use a lot of socket events so by the end of this course you’ll have mastered SocketIO. I will provide all the styling in the resources folder in the first section because this isn’t going to be a CSS tutorial, because I want this tutorial to help you focus on your javascript skills. What you will learn in this course:

    1. How to create a server with nodejs

    2. How to connect to your MySQL database from your nodejs server

    3. How to connect to a Redis client from your nodejs server

    4. How to use SocketIO for client-server communication

    5. How to use VanillaJs to create or update DOM Elements

    6. How to create a complete chess game using javascript

    7. How to setup a MySQL database for your game

    8. How to create and use MySQL procedures

    9. How to create middlewares to authenticate users

    10. How to store cookies

    11. How to use jwt authentication

    12. How to hash user passwords

    *************************************************************************************************

    Since some of the npm packages may have updated when you take this course, it would be better if you used the same versions with me. Also you should have locally installed MySQL and Redis. I use MySQL 8 and Redis 3.0.5 (I used msi installer for redis), but you can use newer versions for redis.

    *************************************************************************************************

    Course Curriculum

    Chapter 1: Introduction & setting up the project

    Lecture 1: Introduction

    Lecture 2: Startup files

    Lecture 3: Creating the server

    Lecture 4: Using Nodemon & ENV Variables

    Lecture 5: Setting up the MySQL Database

    Lecture 6: Setting up Redis

    Lecture 7: Connect to Redis example (using current version of npm package)

    Lecture 8: Setting up Ejs for our view engine

    Chapter 2: User Login & Register

    Lecture 1: Creating Register & Login Page

    Lecture 2: Creating user & user_info tables in DB

    Lecture 3: Creating the register controller

    Lecture 4: Displaying form error messages

    Lecture 5: 5. Creating the login controller

    Chapter 3: Lobby Page

    Lecture 1: Creating the lobby page

    Lecture 2: Connecting to server with socket.io

    Lecture 3: Creating functions to handle connections

    Lecture 4: Getting user info from server

    Lecture 5: Creating our spinner

    Lecture 6: Implementing the chat functionality

    Chapter 4: Games Page

    Lecture 1: Creating the games page

    Lecture 2: Displaying the games page

    Lecture 3: Creating functions to handle room connections

    Lecture 4: Adding functionality to games page part-1

    Lecture 5: Adding functionality to games page part-2

    Lecture 6: Adding functionality to games page part-3

    Lecture 7: Adding functionality to games page part-4

    Chapter 5: Room Page

    Lecture 1: Creating the room page

    Lecture 2: Initializing game variables

    Lecture 3: Displaying the chess pieces

    Lecture 4: user-connected event

    Lecture 5: Creating functions to handle game start

    Lecture 6: Displaying pawn possible moves

    Lecture 7: Moving the pieces

    Lecture 8: Getting rook possible moves

    Lecture 9: Getting bishop possible moves

    Lecture 10: Getting knight possible moves

    Lecture 11: Getting king & queen possible moves

    Lecture 12: Continuing with move logic

    Lecture 13: Checkmate logic

    Lecture 14: Displaying moves to other player part-1

    Lecture 15: Displaying moves to other player part-2

    Lecture 16: Updating the timer part-1

    Lecture 17: Updating the timer part-2

    Lecture 18: Fixing timer error

    Lecture 19: Castling

    Lecture 20: Finishing room page design

    Lecture 21: Pawn promotion part-1

    Lecture 22: Pawn promotion part-2

    Lecture 23: King under attack warning

    Lecture 24: El passant part-1

    Lecture 25: El passant part-2

    Lecture 26: Draw functionality

    Lecture 27: Creating a procedure to update scores

    Lecture 28: Finishing all socket events in the server

    Lecture 29: Testing & finishing the game functionality

    Chapter 6: Stats Page

    Lecture 1: Games controller

    Lecture 2: Creating the stats page

    Lecture 3: Finishing games controller

    Lecture 4: Played game moves pages

    Chapter 7: Profile Page

    Lecture 1: Finishing the user controller

    Lecture 2: Creating the profile page

    Lecture 3: Adding functionality to the profile page

    Chapter 8: Hosting our game

    Lecture 1: Docker files + SQL file + .gitignore file

    Lecture 2: Hosting on Digital Ocean droplet using Docker

    Instructors

  • Build An Online Chess Game  No.2
    Michalis Michailidis
    Web Developer
  • Rating Distribution

  • 1 stars: 2 votes
  • 2 stars: 2 votes
  • 3 stars: 1 votes
  • 4 stars: 5 votes
  • 5 stars: 11 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!