- node.js 16 or later (You can install it from https://nodejs.org/en/download/)
- Clone directory into local folder
- Go into the cloned folder and enter
npm install
- Install gulp globally by entering
npm install -g gulp
- Start the schul-cloud server
- Note: maybe you need to pull the Redis Docker image, start the container and set the
REDIS_URI
environment variable in the schul-cloud server
- Note: maybe you need to pull the Redis Docker image, start the container and set the
- Go into superhero project folder
- run
gulp watch
to run gulp - run
npm run watch
to boot the application OR usenpm run debug
to run with --inspect:9311 to debug the application on port 9311 - go to
http://localhost:3033
- you need a user with superhero role to login, maybe you need to modify your database to add this role to a user of your choice
Add Themes to /theme directory. Call gulp and node with SC_THEME set to name of directory.
then clear build files and gulp cache with gulp clear
run set SC_THEME={themeName}
without spaces around the equal sign!
- SC_NAV_TITLE
- HOST
- PORT
- SC_THEME
- BACKEND_URL
- API_KEY
- REDIS_URI
- Take the last part of the url of your Trello ticket (e.g. "8-setup-feathers-js")
- Name the branch after the Trello id (e.g. "8-setup-feathers-js")
Default branch: master
- Go into project folder
- Run the tests (see above)
- Commit with a meanigful commit message(!) even at 4 a.m. and not stuff like "dfsdfsf"
- Checkout to master branch
- Run
git pull
- Checkout to the branch you want to upload
- run
git rebase -p develop
(notgit merge
!) and solve merge conflicts if needed - run
git push
To build a default container image run the following code:
make build
To customize the build process set some environment variables (details see
Makefile). For example set DOCKER_IMAGE_TAG
to build a custom image tag:
make build DOCKER_IMAGE_TAG="foo/bar:latest"
To push a previously built default container image run the following code:
make push
Todo: Currently private credentials (username, password) will be used for
docker login
(see ~/.docker/config.json
). This should be made configurable
later for CI pipelines.
To customize the push process set some environment variables (details see
Makefile). For example set DOCKER_IMAGE_TAG
to push a custom image tag:
make push DOCKER_IMAGE_TAG="foo/bar:latest"