GithubHelp home page GithubHelp logo

bad's Introduction

Base Sinatra App for Summer Institute

GitHub Release GitHub License

This app is meant as a base Passenger app that runs in an OnDemand portal that uses the Sinatra web framework for OSC's Summer Institute.

Feel free to modify it anyway you see fit.

Deploy

The directions below require Ruby and Bundler be installed and accessible from the command line. At OSC we use modules, so you'll need to issue this command to load the right ruby environment.

$ module load ruby/3.1.4
  1. To deploy and run this app you will need to first go to your OnDemand sandbox directory (if it doesn't exist, then we create it):

    $ mkdir -p ~/ondemand/dev
    $ cd ~/ondemand/dev
  2. Then clone down this app and cd into it:

    $ git clone https://github.com/OSC/summer-institute-base-web-app.git blender
    Cloning into 'blender'...
    $ cd blender
  3. Setup the app before you use it:

    $ bin/setup
    
    ...
  4. Now you should be able to access this app from OSC OnDemand at https://ondemand.osc.edu/pun/dev/blender/

    Note: You may need to replace the domain above with your center's OnDemand portal location if not using OSC.

Develop

Development instructions are in the docs/ folder.

Locally develop

While this application is meant to be used at OSC during Summer Institute you can develop this app on your own time on your own machine.

The one caveat being that you can't submit jobs to a scheduler from your local machine. You can however, use this application to continue to learn about Ruby, Sinatra, HTML and more!

Simply hop into a shell of your choosing, navigate to the directory of this application and issue the command bin/start. You should see output similar to what's given below.

Now you can connect to the application through http://localhost:9001. Note that you can change the port in the bin/start script as it's given as the first arguement -p9001.

$ bin/start
...
Using sinatra 2.2.3
Using webrick 1.8.1
Bundle complete! 6 Gemfile dependencies, 16 gems now installed.
Bundled gems are installed into `./vendor/bundle`
[2024-05-07 09:57:30] INFO  WEBrick 1.8.1
[2024-05-07 09:57:30] INFO  ruby 3.0.2 (2021-07-07) [x86_64-linux-gnu]
[2024-05-07 09:57:30] INFO  WEBrick::HTTPServer#start: pid=7881 port=9001

bad's People

Contributors

johrstrom avatar thegamer1002 avatar dependabot[bot] avatar ericfranz avatar

Watchers

 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.