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.
- Languages: HTML5, PHP, CSS (Managed by Bootstrap), JavaScript/jQuery
- Web Framework: CakePHP
- Database: PostgreSQL
- Development Environments: Atom Editor, NetBeans
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.
Click the button below to deploy on your Heroku account, then pull it to your local machine from Heroku:
Note: If you have access to this Heroku app, then follow the steps below:
-
Follow this link to install Heroku on your local machine and login to Heroku
-
Clone this app to your local machine:
$ heroku git:clone -a myremoteapp
-
Adding Heroku's remote:
$ git remote add heroku https://git.heroku.com/myremoteapp.git
-
Pull the database from Heroku to a new database into your local machine:
$ heroku pg:pull DATABASE_URL mylocaldb -- app myremoteapp
-
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
-
Push to Heroku database:
$ heroku pg:reset
$ heroku pg:push mylocaldb DATABASE_URL --app myremoteapp