Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build An Online Chess Game
Rating: 3.9 out of 5(26 ratings)
193 students
Last updated 10/2022
English

What you'll 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

Course content

8 sections64 lectures14h 11m total length
  • Introduction5:37
  • Startup files0:03
  • Creating the server4:34
  • Using Nodemon & ENV Variables5:52
  • Setting up the MySQL Database7:09
  • Setting up Redis3:51
  • Connect to Redis example (using current version of npm package)0:14
  • Setting up Ejs for our view engine4:23

Requirements

  • Basics of Javascript
  • Basics of HTML
  • Basics of NodeJs
  • Bsics of SQL
  • MySQL server installed locally
  • Redis installed locally

Description

         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.

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

Who this course is for:

  • 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