Skip to content

Resilient-Labs/bet-on-me

Repository files navigation

bet-on-me

Users can join groups (“clusters”) to work on habit-building together. Each group member selects habits they want to improve and sets a required frequency (weekly/monthly) and time limit for completing each habit. Users can place monetary bets on their own ability to complete the habit, and optionally bet with friends. The system tracks passes/fails for each habit, updates points, and manages the shared money pot. All progress is visible to the group, encouraging accountability and friendly competition.

How to submit your code for review/Workflow

  1. Clone the Main repository
  2. Create your own branch for your respective team and name it branchName-yourName/feature (e.g. Frontend-Leanne/Logo, Backend-Justin/UserSchema, etc.)
  3. Work/make your changes, etc.
  4. Push said changes to your respective new branch:
git push --set-upstream origin [BRANCH NAME]
  1. Ping someone on your team to review your changes
  2. Create pull request
## Change Made
-Comment on what you changed and where.

## Usage
-But why though?
  1. DevOps will review and then merge your changes into the DevOps Branch or leave comments for you to fix
  2. If the merge passes tests the changes will be merged into DevOps
  3. DevOps will then delete your branch

Pull Changes from main branch AT LEAST daily. (before pushing, before changing files, before making a new branch, when you wake up, after evening prayers, etc.)

How to Build & Run the App

Follow these steps to run the project locally:

1. Clone the repository

git clone https://github.com/Resilient-Labs/bet-on-me.git cd

2. Install server dependencies

  1. npm install
  2. npm i
  3. npm install stripe

3. Set up environment variables

There are additional stripe keys that can be found in slack, or can be provided if requested.

  • Create a .env file in config folder and add the following as key = value
    • PORT = 3000
    • DB_STRING = your database URI
    • CLOUD_NAME = your cloudinary cloud name
    • API_KEY = your cloudinary api key
    • API_SECRET = your cloudinary api secret
    • MAILER_USER = betonmemailer@gmail.com
    • MAILER_PASS = jjoi uzug jntu otha

4. Run the server

npm start

5. Open the app

Navigate to:

http://localhost:3000

Tech Stack:

Category Tools
Backend Node.js, Express, Mongoose, MongoDB
Frontend EJS, HTML, Bootstrap, JavaScript
Dev Tools dotenv

About

Group-based habit tracker where users bet real money on their own consistency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors