Administrative application for HOAP Inc, built by a team of developers during Code For Good West Michigan's weekend for good, 2019.
This project requires that you have access to composer on your machine as well as a MySQL database instance so that you can migrate the schema and seed the data required.
Notice: I am almost positive that these installation docs are not complete. Please update this list with relevant information if you can.
- Clone the repo
- Navigate your terminal to the just cloned repo's directory and run
composer install
in order to download yourvendor
folder. - Once that is done, you should have a
.env
file. If you do not, then copy.env.example
to.env
in your directory - Fill out your
.env
file'sDB
information with whatever needs to be filled out in order to make a connection. - Run the command
php artisan migrate
in order to create your needed database schema - Run the command
php artisan db:seed
to seed the database. - Run
php artisan serve
in order to serve the application locally.
The general method that I use to create the database and user for the database are the following commands below. You will either want to use the root user or a super administrator user for this:
CREATE SCHEMA `hoap_admin` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ;
CREATE USER 'hoap_admin_user'@'localhost' IDENTIFIED BY 'password_here'
where 'password_here' is whatever password you want your application's user to have.
GRANT ALL ON hoap_admin.* TO 'hoap_admin_user'@'localhost'
Voyager allows us to change the controller namespace. This ultimately lets us fully control all aspects of our application by allowing us to make any changes we would like to the controllers themselves, and ultimately, the views.
While this is good information, we are currently not performing any controller overrides through config.
The items listed below are the general models that are available to have administrative (i.e. CRUD) actions performed on them.
- User - Administrtors of the HOAP ADMIN site.
- Participant - People that HOAP has performed services for in their organization
- Child - Children of participants
- Donor - People who have donated to HOAP
- Volunteer - People performing free services for the HOAP organization
- Community Partner - Agencies/contacts with contact information including county & notes section
Actions that some people/users can take in our application that should be able to be recorded.
- Donation / Payment - Accounts of donations given to the hoap organization. (one time vs recurring, in kind, & amount of gift)
- TimeEntry - Volunteer time (date, number of hours, description) (connected to a volunteer)
Statistical data relating to the model that the demographic is for. The demographics listed below will have
-
ParticipantDemographic
- Completed High School?
- Enrolled or Completed Secondary Education
- How many children?
- Annual Income
- Enrollment date
- Exit date
-
ChildDemographic
- Dad Involved?
- Child Care / School Information
- CPS Involvement?
-
DonorDemographic
-
VolunteerDemographic ( Not really sure if this will be needed )
- Start date
Developers Note: I haven't really scoped out if there is a need for the separation of these demographic entities, but we'll see.
Aside from the specific metrics that are listed with the individual demographic, each demographic should also include the following items:
- Name
- Age
- Date of Birth
- Gender
- Phone Number
- Address
- County
- Notes
CSV dumps of model data.
In order to create an administrator user, you must use the command:
php artisan voyager:admin --create
and then go through all of the steps needed
To the people listed below, thank you for helping to make this project become a reality for HOAP Inc.
- Keenan Barber - [email protected]
- Kyle Blanker - [email protected]
- Dan Drust - [email protected]
- Dillon Walls - [email protected]
- Kellan Martin - [email protected]
This project was made with Laravel 6.x