dnh33 / push-the-button

Hosted on Glitch.com

Home Page:https://push-the-buttonsv.glitch.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Hosted on Glitch.com

https://push-the-buttonsv.glitch.me/

License:GNU General Public License v3.0


Languages

Language:JavaScript 67.7%Language:CSS 22.3%Language:HTML 10.0%