https://github.com/pbijdens/centaur-scores-ui
Management front-end for the centaur-scores API. Created using angular.
https://github.com/pbijdens/centaur-scores-ui
angular centaur-scores tailwind
Last synced: 6 months ago
JSON representation
Management front-end for the centaur-scores API. Created using angular.
- Host: GitHub
- URL: https://github.com/pbijdens/centaur-scores-ui
- Owner: pbijdens
- Created: 2024-03-02T17:08:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-29T22:30:19.000Z (9 months ago)
- Last Synced: 2025-10-30T00:23:27.012Z (9 months ago)
- Topics: angular, centaur-scores, tailwind
- Language: TypeScript
- Homepage:
- Size: 792 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation steps for the Centaur Scores UI
## Requirements
- Apache2 with mod rewrite
- A running 'CentaurScores API' server on port 8062 on the same host that this service runs on.
*curently hardcoded, will probably put this in a settings json file*
- The API server requires MySQL and .NET 8 runtimes; it has its own installation instructions.
## Create a release
To create a release:
```sh
npm run build-cs
```
Then copy the contents of the ```dist/centaur-scores-ui/browser/``` folder to your apache2 server, e.g. in ```/var/www/centaurscoresui```.
## First install
Assuming you already installed the API server and copied the ```dist/centaur-scores-ui/browser/``` folder contents into ```/var/www/centaurscoresui```:
Create a file ```/etc/apache2/conf-available/centaurscores.conf``` with these contents:
```conf
Alias /cs /var/www/centaurscoresui
Alias /assets /var/www/centaurscoresui/assets
RewriteEngine On
RewriteBase /cs
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . index.html [L]
Require all granted
Require all granted
```
The rewrite engine configuration is required because of angular's internal routing, where for most routes no target file exists. All those routes are internally redirected to the index file.
Then run these commands to enable the rewrite module, enable above configuration file and restart apache2.
```
sudo a2enmod rewrite
sudo a2enconf centaurscores
sudo apache2ctl restart
```
You should now be able to reach the UI at http:///cs
You can map assets to any folder so you can start overriding configurations and logos.
## Scripts
Use this script to install a new version of this centaur scores UI
```bash
#!/bin/bash
npm install
npm run build-cs
cp -R dist/centaur-scores-ui/browser/* /var/www/centaurscoresui/
```
Use this script to install a new version of the backend; run this from the ```centaur-scores-api/CentaurScores``` project-folder:
```bash
#!/bin/bash
sudo systemctl stop centaurscoresapi
dotnet publish -o /var/www/centaurscoresapi
sudo systemctl start centaurscoresapi
```