This repository was archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
109 lines (68 loc) · 2.94 KB
/
README
File metadata and controls
109 lines (68 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Lab Check
Version 0.5
by Robert Moore 12/17/2018
-----------------------------------------------------------------
Purpose
-----------------------------------------------------------------
Lab check is an application to track lab usage by a student identification number.
The software allows students to check in and check out of the lab by course. Other features
include administrative reports, exporting and more.
------------------------------------------------------------------
Installation
-----------------------------------------------------------------
Copy the files from public_html to your public_html.
One folder below the public_html folder copy the remainder of the documents.
This should result in the following structure.
controllers
lib
models
public_html
public_html/css
public_html/generated-conf
public_html/generated-migrations
public_html/libs/..... [ few folders in here]
views
In Apache we modify the Vhost to look similar too
<VirtualHost *:80>
ServerName labcheckin
DocumentRoot "/var/www/labcheckin/public_html"
<Directory "/var/www/labcheckin">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
-- Composer --
From console SSH in the public html folder run
php composer.phar update
This will grab all the dependencies required.
-- Propel ORM --
For Database configuration edit the propel.php in the public_html folder.
First we need to set some paths for generated models.
'paths' => [
// The directory where Propel expects to find your `schema.xml` file.
'schemaDir' => '/var/www/labcheckin',
// The directory where Propel should output generated object model classes.
'phpDir' => '/var/www/labcheckin/models',
Second we setup the connection to the database lets leave it called default.
Now we run the initial migration
Change your console directory so your in the public_html folder
Then change the path to the propel.php (but the one in the vendor folder - not your public_html one)
php C:\code\labCheckin\public_html\vendor\propel\propel\bin\propel.php migrate
Lastly edit the conifg.php which is one folder below public_html and set your default login user and password.
When you goto the initial page in the app in a browser, it should automatically create that user (if there are 0 users in the app).
------------------------------------------------------------------
Development Notes
-----------------------------------------------------------------
ORM - http://propelorm.org
update propel command
Must run while in public_html folder and from console
Check for changes in schema.xml
php C:\code\LabCheckin\public_html\vendor\propel\propel\bin\propel.php diff
Migrate
php C:\code\LabCheckin\public_html\vendor\propel\propel\bin\propel.php migrate
Build Models
php C:\code\LabCheckin\public_html\vendor\propel\propel\bin\propel.php model:build
--Future Dev--
*Install script
*Ajax response to login