🧱 Full stack (Kotlin, Spring-boot, React) cms website solution for complex community sites optimized for Schönherz community events
Follow the instructions by Samu, with the following additions:
origin/staging (git fetch && git rebase origin/staging), fix the conflicts, commit, then force push the updated branch (git push --force).git rebase --interactive. You can also use git commit --amend to add the currently staged changes to the last commit instead of creating a new commit. Both of these require force pushing to allow modifying published history.Copy the .env.example file to .env and fill it with the required data.
npm run build
Copy .env.example to .env, fill in the values, then pass it to Docker via --env-file:
docker build -t cmsch-frontend frontend/
docker run --env-file frontend/.env -p 3000:80 cmsch-frontend
Alternatively, pass variables directly:
docker run -p 3000:80 \
-e VITE_API_BASE_URL=http://localhost:8080 \
-e VITE_CLIENT_BASE_URL=http://localhost:3000 \
cmsch-frontend
./gradlew clean bootBuildImage --imageName=<your registry>/cmsch:release
kubectl config use-context <context>helm upgrade --install cmsch-<instance name> --values <path-to-your.yaml> ./helm/cmschhelm delete cmsch-<instance name>Run > Messaging.Project Settings > Service accountsGenerate new private key and download the .json filehu.bme.sch.cmsch.google.service-account-key property to the contents of
the JSON fileFIREBASE_SERVICE_ACCOUNT_KEY to the contents of the JSON
fileProject Settings > GeneralAdd appapiKey, projectId, appId, messagingSenderId and set the FIREBASE_* properties in .envProject Settings > Cloud Messaging and scroll down to Web Push certificatesGenerate key pair. Copy the value from Key pair column and set
VITE_FIREBASE_WEB_PUSH_PUBLIC_KEY to it.The backend supports both PostgreSQL and H2.
While it is a lot easier to develop under H2, you might want to test the application with Postgres too.
Possibly the easiest way to do this is to run it via Docker.
Important, You need to add postgres to the Spring profiles.
This command starts an instance that works with the default backend configuration:
docker run -p5432:5432 --name cmsch-postgres -e POSTGRES_PASSWORD=psqlpw -e POSTGRES_USER=psqluser -e POSTGRES_DB=cmsch -d postgres:17-alpine
Open the monorepo in Intellij and run CMSchApplication.
You can seed the database by editing the run configuration of
CMSchApplication and adding test to the active profiles.
You can run the application manually through the CLI, but you miss out on a lot of features that ease development.
You can also seed the database with some test data by setting the active Spring profile to test
Just simply open a terminal in the backend folder and run
./gradlew bootRun --args='--spring.profiles.active=test,local'
Create a file named application-local.properties in the src/main/resources/config folder,
and specify these configurations (using your credentials):
spring.security.oauth2.client.registration.authsch.client-id=<insert the shorter key>
spring.security.oauth2.client.registration.authsch.client-secret=<insert the long key>
spring.security.oauth2.client.registration.google.client-id=<google client-id>
spring.security.oauth2.client.registration.google.client-secret=<google client-secret>
hu.bme.sch.cmsch.startup.sysadmins=<your pekId>
cmsch.website-default-url=http://<your ip>:8080/
hu.bme.sch.cmsch.login.googleAdminAddresses=<your email address>
hu.bme.sch.cmsch.login.authschAdminAddresses=<your sAMAccountName>@sch.bme.hu
logging.level.web=DEBUG
Your pekId can be found in the console log o
Make a setting to have all the tasks appear as one category in leaderboard
https://github.com/kir-dev/cmsch/issues/1016
Labels: None
Update default test values
https://github.com/kir-dev/cmsch/issues/1006
Labels: good first issue
Groupselection component is buggy
https://github.com/kir-dev/cmsch/issues/993
Labels: bug, FRONTEND, BACKEND
Admin page for styling "loading" for ages
https://github.com/kir-dev/cmsch/issues/992
Labels: None
Form preview
https://github.com/kir-dev/cmsch/issues/972
Labels: enhancement, BACKEND, priority: very low
Revamp Race (sörmérés) inserter board
https://github.com/kir-dev/cmsch/issues/935
Labels: enhancement, BACKEND, priority: low
Replace strong database relations with weak ones
https://github.com/kir-dev/cmsch/issues/934
Labels: None
Add some kind of database change managament solution to the backend
https://github.com/kir-dev/cmsch/issues/863
Labels: enhancement, BACKEND, priority: very low
No CONTRIBUTING document was found. Please check the README and open issues.