Giter VIP home page Giter VIP logo

491project's Introduction

ISU Web Portal

Primary Contributors

  • Andrew Guibert
  • Andrew Hartman
  • Jonathan Mielke
  • Lucas Rorhet
  • Travis Reed

===

Resources

Dev Resources

===

Deplyoment Instructions

Once changes are made in a local development environment, to push changes onto the live server follow these steps:

  1. Run the repackage script which will compress and archive files on your local machine and transfer them to the vrac server
    ./repackage.sh build-YYYY-MM-DD <ISU_USERNAME>

  2. The repackage script will automatically ssh you into the vrac server (once you provide your password) after it moves the new archive onto the server. Once you are on the vrac server, run the redelploy script on the archive you just created.
    ./redeploy.sh build-YYYY-MM-DD
    The redeploy script will tell you which processes to stop if the server is currently running. Additionally, the script will ask for any DB changes that need to be made in order to deploy the new changes.

===

Important Files

  • models.py: Defines structure of database
  • settingslocal.py: Local settings such as passwords
  • run_sandbox.py: Starts the application, imports urls and initializes db
  • requirements.txt: Lists out dependencies. Can be installed using pip install -Ur requirements.txt
  • static/bootstrap3/css/custom-styling.css: Custom CSS

===

General Structure

Each module has a views.py and a file or folder in templates. Work is done in the view function, then data is passed from the view function to the html, and rendered with jinja.

Decorators exist in auth.auth to restrict access to pages to admins, authors, or students. Additionally, models.py defines functions to get a list of courses a given user can access.

Code that we did not write is stored in the static folder, as are uploads from users.

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.