Skip to content

GrudgeDaDev/gruda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grudge Studio Launcher

Backend for grudgeplatform.com, powering PvP games, Discord integration, Gruda chain, and GBuX currency.

Setup

  1. Clone: git clone https://github.com/GrudgeDaDev/gruda.git
  2. Install: npm install parse dotenv
  3. Configure: Copy .env.example to .env, add keys (see Environment Variables).
  4. Test Database: Run node test-back4app.js (see Test Script).
  5. Deploy Cloud Code: Upload cloud/main.js in Back4app (see Cloud Code).
  6. Create Images Directory: Create a directory named images in the root of the project.
  7. Install Grunt: npm install grunt grunt-cli --save-dev
  8. Launch App: Follow the instructions below to launch the app and log in with OAuth.

Environment Variables

The following environment variables are required and should be added to the .env file:

  • PARSE_APP_ID
  • PARSE_CLIENT_KEY
  • PARSE_JAVASCRIPT_KEY
  • PARSE_SERVER_URL
  • DISCORD_CLIENT_ID
  • DISCORD_CLIENT_SECRET
  • DISCORD_GUILD_ID
  • DISCORD_WEBHOOK_URL
  • DISCORD_GBUX_WEBHOOK_URL
  • DISCORD_REDIRECT_URI
  • SUPABASE_URL
  • SUPABASE_KEY

Test Script

The test script test-back4app.js uses dotenv to load environment variables and parse to connect to the Parse server.

Cloud Code

The cloud code in cloud/main.js implements the following features:

  • Parse SDK for web pages like /launcher, /card-minter.
  • Discord webhooks for notifications.
  • Future NFT/GBuX integration.
  • New Parse Cloud function to fetch data for Season0.

Usage

  • Web: Use Parse SDK for pages like /launcher, /card-minter.
  • Discord: Webhooks for notifications.
  • Gruda: Future NFT/GBuX integration.

Seasons

  • Season0: Explore the events and stories of Season0.

Launching the App and Logging in with OAuth

  1. Start the app: npm start
  2. Open your browser and navigate to https://www.grudgeplatform.com/login
  3. Log in with your Discord account.
  4. After logging in, you will be redirected to https://www.grudgeplatform.com/card-minter.
  5. You can now open and buy cards, with an active database and ways to earn GBuX.

Building the Project

To build the project, run the following command:

npm run build

This will use Grunt to minify JavaScript and CSS files.

Running the App

To run the app, use the following command:

npm start

This will start the server and serve the static files from the public directory.

Accessing Different Routes

The app provides the following routes:

  • /card-minter: Access the card minter page.
  • /nexus: Access the nexus page.
  • /season0: Access the Season0 page.
  • /index: Access the index page.

Deploying to Netlify

To deploy the app to Netlify, use the following command:

npm run deploy

This will deploy the contents of the public directory to Netlify.

Contact

grudgeplatform.com/contact

About

Grudge Studio Launcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages