https://github.com/terrymooreii/daysmart-fe
Better interface to daysmart ui
https://github.com/terrymooreii/daysmart-fe
Last synced: about 2 months ago
JSON representation
Better interface to daysmart ui
- Host: GitHub
- URL: https://github.com/terrymooreii/daysmart-fe
- Owner: TerryMooreII
- License: mit
- Created: 2023-04-14T16:22:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-22T01:56:00.000Z (about 2 months ago)
- Last Synced: 2026-04-22T03:36:43.504Z (about 2 months ago)
- Language: TypeScript
- Size: 564 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# A better interface for viewing daysmart team schedules
Add the following ENV variables to your `.env` file
```
BASE_URL= #including ending slash ex http://mysite.com/
TEAM_ID=
LEAGUE_ID=
TEAM_NAME=
TEAM_DESCRIPTION=
LOGO_FILE=
BEER_RULES_MD_FILE=
BEER_CSV=
ROSTER_MD=
```
Make sure when you add new Env variables that they get added to the `.env` file, the `stencil.config.ts`, Github, and `.github/workflows/main.yml`.
## How this works
All shared code goes in this repo, the other actual pages get setup like below
Add the following upstream to the child repos.
```
git remote add upstream git@github.com:TerryMooreII/daysmart-fe.git
```
Now to get changes from upstream in the Gorillas or Moose knuckles child team pages
```
git fetch upstream
git rebase upstream/main
git push --force
```
When the season changes you will need to update the `TEAM_ID` and `LEAGUE_ID` [variables in github](https://github.com/TerryMooreII/fightingmoosekuckles/settings/variables/actions)
To get the correct ids go to the [Polar Ice House](https://apps.daysmartrecreation.com/dash/x/#/online/polarice/leagues?location=1) (or your local league page) and look for your league. Hover over the league level and grab the id from the url. After you click on the league find your team name and hover over that for the team_id
## Getting Started
To start a new project using Stencil, clone this repo to a new directory:
```bash
npm init stencil app
```
and run:
```bash
npm start
```
To build the app for production, run:
```bash
npm run build
```
To run the unit tests once, run:
```
npm test
```
To run the unit tests and watch for file changes during development, run:
```
npm run test.watch
```