Skip to content

Commit

Permalink
Merge pull request #2 from ccims/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
nk-coding authored Aug 4, 2024
2 parents fe1783e + d129d62 commit 7fcccca
Show file tree
Hide file tree
Showing 152 changed files with 11,696 additions and 5,846 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
backend/node_modules/
backend/dist/
frontend/node_modules/
frontend/dist/
78 changes: 0 additions & 78 deletions .github/workflows/deploy.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/test-build-backend.yaml
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
25 changes: 25 additions & 0 deletions .github/workflows/test-build-frontend.yaml
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
67 changes: 0 additions & 67 deletions .github/workflows/test-deploy.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/validate-generated-code.yml

This file was deleted.

23 changes: 23 additions & 0 deletions Dockerfile
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"]
34 changes: 4 additions & 30 deletions README.md
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.
Loading

0 comments on commit 7fcccca

Please sign in to comment.