Skip to content

A web application that gives the user an estimate on how long it would take to complete a set number of courses under ideal conditions.

Notifications You must be signed in to change notification settings

JamesHuangUC/CLEWebEdition

 
 

Repository files navigation

College Length Estimator Web Edition

A web application that gives the user an estimate on how long it would take to complete a set number of courses under ideal conditions.

Project introduced for Winter 2017 CMPS 183 at UCSC. Scrum Board can be viewed [here.] (https://tauboard.com/v/52758768ef23b0524f46beb522140549)

Inspired by [the Java version] (https://github.com/divark/college-length-estimator) of the College Length Estimator made by Tyler Schmidt.

Technologies used:

  • Languages: HTML5, PHP, CSS (Managed by Bootstrap), JavaScript/jQuery
  • Web Framework: CakePHP
  • Database: PostgreSQL
  • Development Environments: Atom Editor, NetBeans

Installation Instructions:

To preview this program, you will need CakePHP 3. You can get that [here.] (https://book.cakephp.org/3.0/en/installation.html)

Once that is acquired, follow the instructions [here] (https://book.cakephp.org/3.0/en/installation.html#create-a-cakephp-project) to create your own project.

When that is done, you'll want to import the table files from the database folder into your PostgreSQL database. Proceed to then configure the app.php file in the config folder, changing the following lines:

  • 'driver' => 'Cake\Database\Driver\Postgres'
  • username, password, and database is dependent on how you set up Postgres.

Then, proceed to run from your bin folder:

  • cake bake all course (Or, in the future, if there are more table files, cake bake all tablenamehere)

Once successful, copy the src folder from this repo and replace it with the newly generated one.

Deploy this app on Heroku

Click the button below to deploy on your Heroku account, then pull it to your local machine from Heroku:
Deploy

Note: If you have access to this Heroku app, then follow the steps below:

  1. Follow this link to install Heroku on your local machine and login to Heroku

  2. Clone this app to your local machine:
    $ heroku git:clone -a myremoteapp

  3. Adding Heroku's remote:
    $ git remote add heroku https://git.heroku.com/myremoteapp.git

  4. Pull the database from Heroku to a new database into your local machine:
    $ heroku pg:pull DATABASE_URL mylocaldb -- app myremoteapp

  5. If you want to test it in your local machine, then edit the lines below in root/config/app.php to configure your local database (make sure your have the permission to this database), then re-bake the app:
    'host' => getenv('DB_HOST')
    'username' => getenv('DB_USER')
    'password' => getenv('DB_PASS')
    'database' => getenv('DB_NAME')

    $ bin/cake bake all

  6. Push to Heroku database:
    $ heroku pg:reset
    $ heroku pg:push mylocaldb DATABASE_URL --app myremoteapp

About

A web application that gives the user an estimate on how long it would take to complete a set number of courses under ideal conditions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.1%
  • JavaScript 2.7%
  • SQLPL 2.4%
  • CSS 2.4%
  • Python 1.7%
  • Shell 0.4%
  • Other 0.3%