An open API service indexing awesome lists of open source software.

https://github.com/sher2001/snakes_and_ladders

A multiplayer Snake and Ladder game built with React (Vite) for the frontend and Ruby on Rails for the backend.
https://github.com/sher2001/snakes_and_ladders

actioncable rails reactjs tailwindcss

Last synced: about 2 months ago
JSON representation

A multiplayer Snake and Ladder game built with React (Vite) for the frontend and Ruby on Rails for the backend.

Awesome Lists containing this project

README

          

# Snake and Ladder Game 🎲🐍

A multiplayer Snake and Ladder game built with **React (Vite)** for the frontend and **Ruby on Rails** for the backend.

---

## Features

- **Multiplayer Gameplay:** A classic Snake and Ladder game where players can compete online.
- **Modern Frontend:** Built with React and styled with modern tools.
- **API-Powered Backend:** Rails API for game logic, user management, and real-time interactions.
- **Deployed with Render:** Both frontend and backend hosted seamlessly.

---

## Prerequisites

1. **Node.js**: Install from [nodejs.org](https://nodejs.org/).
2. **Ruby & Rails**: Install Ruby (>= 3.0.0) and Rails (>= 7.0).
3. **PostgreSQL**: Ensure PostgreSQL is installed and running for the backend.

---

## Setup

### 1. Clone the Repository

```bash
git clone https://github.com/your-username/snake-and-ladder.git
cd snake-and-ladder
```

---

### 2. Backend Setup

Navigate to the backend folder:
```bash
cd backend
```

Install Dependencies:
```bash
cd backend
```

Set up the database:
```bash
rails db:create db:migrate
```

Start the Rails server:
```bash
rails server
```

By default, the backend will run on http://localhost:3000.

---

### 2. Backend Setup

Navigate to the frontend folder:
```bash
cd frontend
```

Install dependencies:
```bash
npm install
```

Start the development server:
```bash
npm run dev
```

By default, the frontend will run on http://localhost:5173.