Skip to content

Latest commit

 

History

History
86 lines (55 loc) · 1.71 KB

README.md

File metadata and controls

86 lines (55 loc) · 1.71 KB

MinecraftButViewers

Website for MINECRAFT streamers that lets viewers respawn creepers and other mobs, apply an effect on a streamer, play sounds on him for money.

Stack

Front-End

  • React Context API

  • React Hooks API

  • React Router

  • Axios

  • Socket.io

Back-end

  • Node.js

  • MongoDB ( mongoose )

  • Express

  • Passport

  • Cookie-session

  • Paypal SDK

  • Socket.io

  • Rcon

How to deploy on heroku

PRE DEPLOY

Create mongo database.

Go to client/public/index.html and edit:
 <script src="https://www.paypal.com/sdk/js?client-id=YOUR__PAYPAL__CLIENT__ID&currency=PAYPAL__CURRENCY__CODE"></script>
 example:
 <script src="https://www.paypal.com/sdk/js?client-id=ASdP_WS9QXMVbGR4KG1OoDb104ytezZiy_YKDSne0hgbBm0zS-21hP0i4SnQoVC528F63u14P83KbgI-&currency=PLN"></script>

DEPLOY

  1. Clone this repo.
  2. Install heroku CLI
  3. Create Heroku App
    heroku create
    git remote -v // Confirm that a remote named heroku has been set.
  1. Deploy code
git push heroku master
  1. Set heroku config variables:
COOKIE_KEY: "any string //==// it will encrypt cookie eg. mysecretcookiekey"
MINECRAFT_IP: "ip of your minecraft server"
MINECRAFT_RCON_PASSWORD: "minecraft server rcon password"
MONGO_URI: "URI of your mongoDB"
PAYPAL_CLIENT_ID: ""
PAYPAL_SECRET: ""
TWITCH_CALLBACK: "url which u will be redirected to after twitch auth. eg. https://fathomless-eyrie-41485.herokuapp.com/auth/twitch/callback"
TWITCH_CLIENT_ID: ""
TWITCH_SECRET: ""