Skip to content

eirini-forks/eirinidotcf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

EIRINI-DOT-CF - The Eirini Web Page

This repository contains the resources for https://eirini.cf.

Deploy the database

  1. Navigate to the db/ directory
  2. Run ./helm-install-db.sh
  3. Export the MYSQL_ROOT_PASSWORD to an environment variable:
    export MYSQL_ROOT_PASSWORD=$(kubectl get secret --namespace pheed-db pheed-mysql -o jsonpath="{.data.mysql-root-password}" | base64 --decode; echo)
  4. Get the node port of the database and export it as $DB_PORT:
    export DB_PORT=$(kubectl get service -npheed-db pheed-mysql -ojsonpath='{.spec.ports[?(.name=="mysql")].nodePort}')
  5. Get a Node IP and export it as $DB_IP

API

  1. Navigate to the api/ directory

  2. Run cf push --no-start

  3. Create the Custom Service for the Database

    cf cups pheed-db -p "$(./db-cups.json.sh)"
  4. Bind the service with the API CF app:

    cf bind-service eirinidotcf-api pheed-db
  5. Start the API:

    cf start eirinidotcf-api

Frontend

  1. Navigate to the /web directory
  2. Set the api_url in src/config.json to http://eirinidotcf.<your-cf-domain>
  3. Build the static content using yarn:
    yarn install
    yarn run build
  4. CF push the web frontend with $ cf push

The frontend app should be avialable now at http://web.<your-cf-domain>

If you have a domain registered to your cluster node IP and you want to use it for this app, run the following commands:

cf create-domain <org> <domain>
cf map-route web <domain>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published