GitXplorerGitXplorer
f

league-for-good

public
164 stars
104 forks
23 issues

Commits

List of commits on branch master.
Unverified
1e35bf37f34e70ae244fbb5574ceef066673a702

Merge branch 'archiveGames' of https://github.com/domwakeling/league-for-good into archiveGames

ddomwakeling committed 6 years ago
Unverified
b5ed9a236f3b038c8abe323a113f5401897f04fd

Corrected 'team' to 'league'

ddomwakeling committed 6 years ago
Verified
0c539329281b4e49cbc98842cd299a3ff9128ba0

Merge pull request #119 from hcuffy/issue/82

ppaulywill committed 6 years ago
Unverified
69c37a3abd9ff172cc0632b74f551d17d25f1610

npm audit fix; update

ppaulywill committed 6 years ago
Verified
ef96c1ca60b4592131fb90a36d0cf9ee03d85047

Merge pull request #125 from paulywill/fix/passport-google-oauth20@2

ppaulywill committed 6 years ago
Unverified
1af1d7ac0b5a022fdc0870b949d5ca5fbe7acd8f

Fixing Active Team Filter

PPatLeong committed 6 years ago

README

The README file for this repository.

FCC League-For-Good

This is a free, open-source web application designed to help sports leagues track their player and team stats, and simplify the other day-to-day tasks involved with team management. It was designed to accommodate many popular sports.

Join Us On Slack!

You can now join us on slack. Get Invite Here

Getting Started

Prerequisites

In order for the authorization component of this app to work, it needs to be registered with Google. Here is a helpful walkthrough of that process: https://developers.google.com/identity/sign-in/web/devconsole-project.

You will want to register Type as Web application, set Authorized JavaScript origins to http://localhost:4000 (if you're running the application locally) and set the Authorized redirect URI to http://localhost:4000/auth/google/callback (this can be set through the Google API Console Dashboard under Credentials if not offered as an option during setup).

You will also need to enable the "Google+ API" on the Google API Console Dashboard - if you forget, Google will display an error message (with a link to the API) the first time you try to log in.

Steps

  • Fork and clone the repo
  • Run npm install
  • In the root directory, create a .env file and place the following:
    • MONGO_URI = Your database uri - typically mongodb://localhost:27017/your_project_name if your MongoDB is local
    • GOOGLE_CLIENT_ID = Client id assigned by Google
    • GOOGLE_CLIENT_SECRET = Client secret assigned by Google
    • SESSION_SECRET = Any random string of characters
    • GOOGLE_CALLBACK_URL = http://localhost:4000/auth/google/callback (Use for the callback url in the Google API console)
  • Open a new terminal session and run mongod if mongodb is on the local machine
  • Run npm run dev
  • Navigate to localhost:4000 in your browser

Available Scripts

In the project directory, the following commands are available:

npm install

Installs all the dependencies

npm run dev

Builds the app for development. It is watched by webpack for any changes in the front end.

How to Contribute

We warmly welcome contributions from anyone. Check out our how to contribute section to find out how you can do so.