Skip to content

build-on-aws/fullstack-appsync-events-4-in-a-row

Fullstack AppSync Events 4-in-a-Row

gameplay

Overview

Fullstack 4-in-a-Row is a real-time multiplayer game built using AWS Amplify, AWS AppSync Event API, and React. Challenge your friends to a classic connect four game with real-time updates and in-game chat functionality.

Features

  • ๐ŸŽฎ Real-time 4-in-a-Row gameplay
  • ๐Ÿ’ฌ In-game chat system
  • ๐Ÿ” User authentication
  • ๐ŸŽŸ๏ธ Game room creation and joining
  • ๐Ÿ“ก Powered by AWS AppSync Event API

Tech Stack

archoverview

  • Frontend: React (v0)
  • Backend: AWS Amplify
  • Real-time Communication: AWS AppSync Event API
  • Infrastructure: AWS CDK

Prerequisites

  • Node.js (v18+)
  • AWS Account
  • AWS Amplify CLI
  • npm or yarn

Getting Started

1. Clone the Repository

2. Install Dependencies

npm install

3. Deploy Backend

npx ampx sandbox

Game Mechanics

intro-4

  1. Create a new game room
  2. Share the room code with a friend
  3. Take turns placing your colored discs
  4. First player to connect four discs wins!

Key Components

  • ๐Ÿ  Home Screen: Create or join a game room
  • ๐ŸŽฒ Game Board: Interactive 4-in-a-Row grid
  • ๐Ÿ’ฌ Chat Interface: Real-time messaging
  • ๐Ÿ‘ค User Management: Authentication and profiles

Note: This project is a demonstration of AWS AppSync Event API capabilities and modern full-stack development practices.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.