Giter VIP home page Giter VIP logo

degendomino's Introduction

🎮 Degen Domino

👉Project Description

This game website, built with React and Cloudflare Workers backend application, is designed to host multiple games, offering a diverse and entertaining experience for users. Currently, the website features "Mango Master," a thrilling game where players have 60 seconds to collect as many mangoes as possible using arrow keys or mouse controls. Players can compete for a spot on the leaderboard, with the top 10 scores displayed prominently. While "Mango Master" is the only game available now, the website is poised to expand with more exciting games in the future, providing endless fun and challenges for desktop users.

👉A Short Sneak Peek!

degendomino.mp4

⚙️Tech Stacks Used

  • Reactjs
  • Tailwind
  • Phaser
  • TypeScript
  • Hono
  • Prisma
  • Postgres
  • Cloudflare Workers
  • Zod

👉Features

  1. Responsive Game Website:

    • Designed for optimal performance on desktop devices.
    • Future-proof with planned support for additional games.
  2. Current Game: Mango Master

    • Gameplay:
      • Players have 60 seconds to collect as many mangoes as possible.
      • Use arrow keys for precise control (recommended) or mouse for movement.
    • Scoring:(upcoming feature)
      • Scores are recorded and displayed on a real-time leaderboard.
      • Top 10 scores are highlighted for competitive tracking.
  3. User-Friendly Interface:

    • Intuitive and engaging UI/UX design for an immersive gaming experience.
    • Clear instructions and controls provided for each game.
  4. Leaderboard Integration:

    • Displays top scores to encourage competitive play.
    • Real-time updates to reflect the latest high scores.
  5. Backend Powered by Cloudflare Workers:

    • Robust and scalable backend infrastructure.
    • Efficient handling of game data and leaderboard updates.
  6. Future Expansion:

    • Designed to support multiple games on the same platform.
    • Easily extensible to add new games and features.
  7. Security Features:

    • Secure data handling to protect user information.
    • Reliable backend infrastructure ensuring minimal downtime.

👉Getting Started

Please follow these simple steps to get a local copy up and running.

Server Side

  • Create a copy of .env.example and name the file .env
  • Set up Postgres DATABASE_URL in .env file. You can get a free PostgreSQL connection string from Aiven.io or Neon.tech.
  • Create a copy of wrangler.sample.toml and name the file warngler.toml
  • Set up Prisma connection pool DATABASE_URL in wrangler.toml file. You can get this for free from Prisma.
  • Set up JWT Secret JWT_SECRET in wrangler.toml file. This can be any value.
  • Login to (cloudflare) and create a free account.
  • Make sure you have logged in the cloudflare cli using npx wrangler login.
  • Run npm run deploy
cd backend
npm install
npm run prisma:migrate
npx prisma generate
npm run dev

Note: wrangler.toml is the environment configuration file for a serverless backend. .env is used by Prisma for connection pooling. Ensure you configure both environment files accordingly.

Client Side

  • Navigate into the frontend directory using
cd frontend
npm install
npm run dev

Note: frontend/src/config.ts contains backendUrl. If you need your frontend to point to local backend server, uncomment export const BackendUrl = "http://127.0.0.1:8787/server/v1".

➡️ Coming Soon

  • A leaderboard to showcase top players
  • More games to come
  • Live chat for online players to connect with each other

degendomino's People

Contributors

abbi4code avatar

Stargazers

 avatar

Watchers

 avatar

degendomino's Issues

cookies disappearing on refresh

should have use nextjs so both client and node on same server f react so every time node give me back the token everytime on pg refresh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.