Skip to content

HalfLife7/potion-break

Repository files navigation

Project logo

Status GitHub Last Committ License


Take a break from gaming with the help of loss aversion.

📝 Table of Contents

🧐 About

Games can be quite addicting! Even when you have an important deadline coming up, you might not be to resist slaying the next dragon or getting new loot.

By committing to pay a charity 'x' amount of dollars if you fail to take a break from playing, it might give you that extra bit of motivation you need to resist playing.

**Note that Potion Break is still in testing and no real money is involved! Use test cards such as '4242 4242 4242 4242' for testing.

3 Steps to Potion Break:

  1. Customize your Potion Break - Options include game, charity and duration
  2. Go AFK! - Spend your extra time learning a new hobby, studying for that test or playing some basketball.
  3. Sucessfully take a break? Save your hard earned cash.
    Give in to temptation? Lose your money to the charity of your choice

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them.


Requirements

For development, you will only need Node.js (v14.8) and a node package manager installed in your environment.

Node

  • Node installation on Windows

    Just go on official Node.js website and download the installer. Also, be sure to have git available in your PATH, npm might need it (You can find git here).

If the installation was successful, you should be able to run the following command.

    $ node --version
    v14.8

    $ npm --version
    6.14.5

Install

    $ git clone https://github.com/HalfLife7/potion-break
    $ cd potion-break
    $ npm install
    $ knex migrate:latest
    $ knex seed:run

Configure app

Open potion-break/.env.example then edit it with your settings and rename to ONLY '.env'. You will need:

- STEAM_API_KEY - https://steamcommunity.com/dev/apikey
- STRIPE_API_KEYS - https://stripe.com/docs/keys

Running the project in development

    $ npm run start
    app will be hosted at localhost:5000/

⛏️ Built Using

Backend

Frontend

Utilities

🎉 Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published