Skip to content

Repository for the Aalto Grades program with kustomize configuration

License

Notifications You must be signed in to change notification settings

lakooi/base-repository-with-kustomize

 
 

Repository files navigation

Aalto Grades

Repo for Aalto Grades Program

Development build

You can run the development build of the software by running docker-compose --profile dev up in the root folder of the project.

This command has one requirement which is defining the environmental variable POSTGRES_PASSWORD before execution.

Demo flow:

$ export POSTGRES_PASSWORD=XXXX
$ docker-compose --profile dev up

If you want to run the build without starting the frontend container or adminer

$ export POSTGRES_PASSWORD=XXXX
$ docker-compose up

If you want to run the build without starting adminer, but with the frontend container

$ export POSTGRES_PASSWORD=XXXX
$ docker-compose --profile prod up

Development environment

As one of the developers: in order to access the development environment, you may do the following.

  1. Set up configuration for your Aalto access (only required when logging in for the first time):
# ~/.ssh/config
Host kosh
  User hannula7 # REPLACE
Host grades
  User hannula7 # REPLACE
  1. Log in using the provided configuration file (which uses your own SSH config as a base):
$ ssh -F ssh.config grades
  1. Ensure that the Docker model is running:
hannula7@aalto-grades$ cd /srv/aalto-grades
hannula7@aalto-grades$ sudo docker-compose top
# if not running:
hannula7@aalto-grades$ sudo docker-compose up
  1. Now, the dev environment services can be accessed from your local computer:
  • Backend is at localhost:3000
  • Frontend is at localhost:3005
  • Adminer is at localhost:8080

About

Repository for the Aalto Grades program with kustomize configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.6%
  • TypeScript 44.0%
  • Other 1.4%