Giter Site home page Giter Site logo

flight-admin-gui's Introduction

Open Flight HPC - Flight Admin GUI

Installation

  1. Ensure Ruby version as specified in .ruby-version is installed

  2. PostgreSQL 9+ installed and running. The following should achieve this for a CentOS machine:

    Tested using v9.2 on CentOS 7

    2.1. Install using yum install postgresql

    2.2. Configure PostgreSQL like the following:

    postgresql-setup initdb
    sudoedit `/var/lib/pgsql/data/pg_hba.conf`
    # Change entries in `METHOD` column to 'trust' and then save the file
    systemctl start postgresql
  3. Ensure Node.js v8.12 is installed

  4. Yarn installed

    4.1. Install repo using curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo

    4.2. Install yarn itself using yum install yarn

  5. Install and configure Flight Terminal Service as described here

  6. Clone this repo using git clone https://github.com/openflighthpc/flight-admin-gui.git

  7. Copy the example environment variables file using cp '.env.example' '.env'

  8. Edit .env as required to use valid environment variables. Some of these are only important for specific environments.

  9. Install gems with bundle install

  10. Prepare the database

    10.1. Create DB RAILS_ENV=production bin/rails db:create

    10.2. Load schema RAILS_ENV=production bin/rails db:schema:load

    10.3. Run database migrations RAILS_ENV=production bin/rails db:migrate

    10.4. Run data migrations RAILS_ENV=production bin/rails data:migrate

  11. Create an initial user

    11.1. Enter the rails console using RAILS_ENV=production rails c

    11.2. Create the user with User.create(username: '<USERNAME HERE>', password: '<PASSWORD HERE>')

  12. Precompile assets using rake assets:precompile

  13. Launch server using bin/rails -s -p 80 -e production

  14. Access the application at its public IP and use the details for the user you created in step 7 to log in

flight-admin-gui's People

Contributors

atoghill avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.