Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Scoreboard README

Overview

This README provides information on setting up and running a React app that utilizes Node modules. Please note that the node_modules directory has been ignored in this GitHub repository. Follow the steps below to properly set up and run the app.

Prerequisites

Make sure you have the following installed on your machine:

Getting Started

  1. Clone the repository to your local machine:

    git clone https://github.com/sjcineas/scoreboard.git
    
  2. Navigate to the project directory:

    cd scoreboard
    
  3. Install project dependencies:

    npm install
    

This will install the necessary Node modules.

  1. Create .env file inside server folder with the following and fill in the
  DB_HOST=localhost
  DB_USER=<usually 'root' but may be different'
  DB_PASSWORD= <password>
  DB_NAME=score
  1. You will need to create tables and seed data. Run the following commands (not together) to do so.
grunt create-tables
grunt seed-data

Grunt Tasks

To automate database setup, seeding, and app startup, use the following Grunt commands:

create-tables

Creates the necessary tables (register, membership, events, attendance) in your score database if they don't already exist.

grunt create-tables

seed-data

Seeds the database tables with initial test data from JSON files located in ./test-data. It adds members, admin users, events, and attendance data by making HTTP POST requests to your API.

grunt seed-data

start-and-seed

Starts the application (npm start) in a new terminal tab, waits 20 seconds for it to initialize, then seeds the database with the initial data.

grunt start-and-seed

drop-tables

Drops all tables (membership, events, register, attendance) from the database.

grunt drop-tables

Start the React app:

npm run launch

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages