DEV Community

Adrian Chong
Adrian Chong

Posted on

3 1

Make a TIC-TAC-TOE by using NextJs, React and Redux with Typescript

Tic Tac Toe
Demo link: https://tictactoe-hu2mk80qr-phonist.vercel.app/
GitHub repo: https://github.com/phonist/tictactoe

About The Project

This is a straightforward Tic Tac Toe game.
The game is build using NextJs on top of React with Typescript.
Then there's redux, redux-thunk, and material-UI.

Build With

Getting Started

The project are mainly categorize into three parts (UI, redux logic and typescript interface):

pages
|-- index.tsx
|-- _app.tsx
|-- Board.tsx
|-- Game.tsx
|-- Square.tsx
redux
|-- reducers
|-- actions
|-- thunks
|-- types
      |-- interfaces
|-- reducers.ts
|-- store.ts
Enter fullscreen mode Exit fullscreen mode
  • All UI components are kept in the pages folder..
  • All redux logic are kept inside redux folder.
  • All typescript interfaces are kept inside types and types/interfaces folder.

Prerequisites

  • Node - 16.2.0
  • Yarn - 1.22.17

Installation

  1. git clone https://github.com/phonist/tictactoe.git
  2. cd tictactoe
  3. yarn dev
  4. navigate to localhost:3000 and start your development

Top comments (0)

Neon image

Next.js applications: Set up a Neon project in seconds

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Get started →

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay