Skip to content

ninadepina/tic-tac-toe

 
 

Repository files navigation

NodeJS Socket.io Handlebars CSS3 JavaScript

👋🏼 'TIC TAC TOE'

'TIC TAC TOE' is a real-time web application built with Node.js and Socket.IO!

Players can create or join rooms where they can chat with each other. When a room has two players, a game of Tic Tac Toe can be started (if a room has more players, two players will be randomly selected). design landing page design room page


🛠️ Features

Features Status
Choose username
Create/join room
Chat with other users
Play Tic Tac Toe
Switch between players
Save game info on socket
Restart game
Leave/delete room

👩🏼‍💻 How to use

  1. Clone this repository
$ git clone https://github.com/ninadepina/tic-tac-toe.git
  1. Install dependencies
$ cd tic-tac-toe
$ npm i
  1. Create a .env file in the root of the project and add the following:
SESSION_SECRET=<YOUR SESSION SECRET>
PORT=<YOUR PORT>
  1. Run the server
$ npm run start
// or when wanting to use nodemon
$ npm run start:dev

In your browser, go to http://localhost:2222 (you can change the localhost PORT in the .env file)


📝 Documentation

Gain a better understanding and delve further into this project by reading the process documentation.


👁️ Demo

rw-tictactoe.adaptable.app


📄 License

This project is licensed under the MIT License - see the LICENSE file for more details.

Languages

  • JavaScript 42.1%
  • CSS 33.8%
  • Handlebars 24.1%