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.
- Host: GitHub
- URL: https://github.com/sher2001/snakes_and_ladders
- Owner: sher2001
- Created: 2024-12-03T18:52:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-03T21:59:03.000Z (over 1 year ago)
- Last Synced: 2025-10-26T14:12:40.499Z (8 months ago)
- Topics: actioncable, rails, reactjs, tailwindcss
- Language: Ruby
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
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.