Skip to content

Commit

Permalink
Current Gamma version that is in production (#837)
Browse files Browse the repository at this point in the history
Co-authored-by: Gurrit <[email protected]>
  • Loading branch information
Portals and Gurrit authored Dec 12, 2023
1 parent b11653c commit 91cecb0
Show file tree
Hide file tree
Showing 658 changed files with 60,680 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @portals @gurr1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yarn-error.log
frontend/node_modules/
.idea/*
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Theodor Angergård <[email protected]> <[email protected]>
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: java

jdk:
- oraclejdk11

before_script:
- cd backend

script:
- ./gradlew build --console 'plain' -s

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

notifications:
email: false
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
# Gamma
# Gamma

[![Build Status](https://travis-ci.com/cthit/Gamma.svg?branch=develop)](https://travis-ci.com/cthit/Gamma)

# Gamma is Chalmers IT section account system

Gamma is licensed under the GNU AGPL, see `LICENSE`.

---

## More information about Gamma can be found on the [Wiki](https://github.com/cthit/Gamma/wiki)

## Build setup

### For production

it's real easy. Just replace the environment variables with suitable value (see wiki)
and run:

`docker-compose -f prod.docker-compose.yml up --build`

Depending on your build system, things might be different, and a proxy is probably needed for a real production version of Gamma.

### Development

run

`docker-compose up --build` to build the frontend, backend, database, databasemonitoring, and all microservices that's needed for Gamma.

If developing on the backend, we recomend not running the backend in the docker-compose file. There is a docker-compose file that sets up all microservice but the backend, to use this run: `docker-compose -f no_backend.docker-compose.ym up --build`
then you will need to start the server, this is done by running the Java code in the backend, and is probably best done through an IDE.

You'll need to run `docker-compose down` / `docker-compose -f no_backed.docker-compose.yml down` if you want to try the production build. Same if you're going from production to development.

## API Documentation

The API documentation is auto-generated by [Swagger](https://swagger.io/) and can be found under http://localhost:8081/api/swagger-ui.html while the application is running.
33 changes: 33 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.gradle/
/build/
!gradle/wrapper/gradle-wrapper.jar
/uploads/

/src/main/resources/secrets.properties

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
/out/
.idea/

### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

secrets.properties
Loading

0 comments on commit 91cecb0

Please sign in to comment.