Skip to content

Commit 6ea54b5

Browse files
Initial commit
0 parents  commit 6ea54b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+19952
-0
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REACT_APP_USE_AUTHENTICATION=true
2+
3+
REACT_APP_API_GATEWAY=api/gateway
4+
REACT_APP_WS_GATEWAY=ws/gateway
5+
6+
EXTEND_ESLINT=true

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REACT_APP_USE_AUTHENTICATION=false
2+
3+
REACT_APP_SRV_STUDY_URI=study-server

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- name: Install and Build
16+
run: |
17+
npm install
18+
npm run-script test
19+
npm run-script build
20+
npm run-script test
21+
22+
- name: Build and publish Docker image
23+
if: github.ref == 'refs/heads/main'
24+
uses: elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
25+
with:
26+
name: gridsuite/gridXXX-app
27+
username: gridsuiteci
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
30+
- name: Broadcast update event
31+
if: github.ref == 'refs/heads/main'
32+
uses: gridsuite/broadcast-event@main
33+
with:
34+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
35+
event-type: gridXXX_app_updated

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# dependencies
2+
/node_modules
3+
4+
# production
5+
/build
6+
7+
# webstorm
8+
/.idea
9+
10+
# misc
11+
.env.local
12+
.env.development.local
13+
.env.test.local
14+
.env.production.local
15+

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"singleQuote": true
4+
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.1.0] - yyyy-mm-dd
11+
12+
### Added
13+
14+
...
15+
16+
[unreleased]: https://github.com/gridsuite/gridapp-template/compare/v0.2.0...HEAD
17+
[0.1.0]: https://github.com/gridsuite/gridapp-template/releases/tag/v0.1.0

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM bitnami/apache:2.4.55-debian-11-r3@sha256:bbe50190eb3bbf3be6f61318004480b3230846bfd52dec9286bd1862254c1719
2+
3+
USER root
4+
COPY app-httpd.conf /opt/bitnami/apache/conf/bitnami/bitnami.conf
5+
COPY build /opt/bitnami/apache/htdocs/gridXXX
6+
RUN sed -i -e 's;<base href="\./"/>;<base href="<!--#echo var="BASE" -->"/>;' /opt/bitnami/apache/htdocs/gridXXX/index.html
7+
USER 1001

0 commit comments

Comments
 (0)