-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ccims/next
Next
- Loading branch information
Showing
152 changed files
with
11,696 additions
and
5,846 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
backend/node_modules/ | ||
backend/dist/ | ||
frontend/node_modules/ | ||
frontend/dist/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test build backend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build-backend: | ||
name: Build backend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21.x | ||
cache: npm | ||
cache-dependency-path: "**/package-lock.json" | ||
- name: Install backend dependencies | ||
run: npm ci | ||
working-directory: backend | ||
- name: Build backend | ||
run: npm run build | ||
working-directory: backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test build frontend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build-frontend: | ||
name: Build frontend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21.x | ||
cache: npm | ||
cache-dependency-path: "**/package-lock.json" | ||
- name: Install frontend dependencies | ||
run: npm ci | ||
working-directory: frontend | ||
- name: Build frontend | ||
run: npm run build | ||
working-directory: frontend |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM node:21 | ||
ENV NODE_ENV=build | ||
USER node | ||
WORKDIR /home/node | ||
ADD backend . | ||
RUN npm ci | ||
RUN npm run build | ||
|
||
FROM node:21 | ||
WORKDIR /app | ||
COPY frontend /app | ||
RUN npm ci | ||
RUN npm run build | ||
|
||
FROM node:21 | ||
ENV NODE_ENV=production | ||
USER node | ||
WORKDIR /home/node | ||
COPY --from=0 /home/node/package*.json ./ | ||
COPY --from=0 /home/node/node_modules ./node_modules/ | ||
COPY --from=0 /home/node/dist ./dist/ | ||
COPY --from=1 /app/dist ./static | ||
CMD ["node", "dist/main.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,8 @@ | ||
# Gropius Backend | ||
# Login-Service Monorepo | ||
|
||
For more documentation, have a look at our documentation website: https://ccims.github.io/gropius-backend-docs | ||
For more documentation, have a look at our documentation website: https://ccims.github.io/gropius-docs | ||
|
||
## About | ||
|
||
The backend of the Gropius system. | ||
Provides all services a Gropius backend uses, and modules used by those services. | ||
For a description of all modules, see [Modules](./modules). | ||
|
||
## Running the backend | ||
|
||
https://github.com/ccims/gropius provides both a production and development setup of all services of the backend using docker-compose. | ||
|
||
### Production | ||
|
||
```sh | ||
git clone --recursive https://github.com/ccims/gropius.git | ||
cd gropius | ||
docker-compose up | ||
``` | ||
For a production setup, it is recommended to change default passwords and secrets defined in `docker-compose.yaml` | ||
|
||
### Development | ||
|
||
```sh | ||
git clone --recursive https://github.com/ccims/gropius.git | ||
cd gropius | ||
docker-compose -f docker-compose-dev.yaml up | ||
``` | ||
|
||
Alternatively, it is possible to execut services on its own using Gradle. | ||
[Modules](./modules) provides an overview of the used commands, requirements and runtime dependencies. | ||
[docker-compose-dev.yaml](https://github.com/ccims/gropius/blob/main/docker-compose-dev.yaml) can be used as a reference for a working set of configuration properties for each service. | ||
The login-service of the gropius system. | ||
Consists of a backend and a frontend. |
Oops, something went wrong.