Giter Site home page Giter Site logo

push-the-button's Introduction

Push the Button Minigame with Panda Wallet Integration ๐ŸŽฎ

This project is a template for anyone to build a fun and interactive minigame where players can push a button to increase their score. It's integrated with Panda Wallet for user authentication and uses an SQLite database to store scores.

This project is dedicated to Joefroobs ๐Ÿฆง (@joefroobs).

Tech Stack ๐Ÿ› ๏ธ

Getting Started ๐Ÿš€

  1. Clone the repository to your local machine.
  2. Run npm install to install the necessary packages.
  3. Remove the existing game.db, and create a new file with the same name
  4. Start the server with node server.js.

The Express server will serve the website files from the /public directory.

Hosting Your Express.js Powered Web App on Glitch

Hosting your Express.js powered web app on Glitch is a straightforward process. This platform is ideal for beginners due to its simplicity and ease of use. Follow these steps to host your web app:

  1. Create a Glitch Account: Visit Glitch and sign up for a free account.

  2. Import Your Project: After signing in, click on New Project > Import from GitHub. Enter the URL of your GitHub repository where your Express.js project is hosted.

  3. Configure Your Project: Once your project is imported, you can edit the project files directly in your browser. Ensure your project has a package.json file, which lists all the dependencies your project needs to run.

  4. Add start script "scripts": { "start": "node server.js" }, to package.json and Glitch will run your app by itself. If it doesn't. Open the terminal and type refresh.

  5. Access Your App: Your app is now running and can be accessed via the URL provided by Glitch, which is displayed at the top of your screen.

Please note that Glitch has some limitations. The starter plan only offers 1000 "project hours" per month, which is reset monthly. This is used when you're actively editing the site or if someone is accessing it. If no one is accessing or editing the site it will sleep. The starter plan environment has a limited amount of container RAM and storage space. Custom domains are not well supported (at time of writing). However, considering that a typical Express.js application runs continuously and does not consume much CPU or memory, 1000 project hours should be more than sufficient to run your app for free every month.

Happy Hacking! ๐Ÿ’ป

Feel free to explore the codebase and make any modifications you like. Happy hacking!

License ๐Ÿ“„

This project is licensed under the GPL-3 License. See the LICENSE file for details.

push-the-button's People

Contributors

dnh33 avatar

Stargazers

Ryan Wold avatar Jordan Kramsky avatar Rachael Brady avatar

Watchers

 avatar

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.