Purpose: A platform to enable CFG instructors to log & record their volunteering hours.
Source: https://dbdiagram.io/d/5f57aa4488d052352cb669a9
Scaffold & Set-Up
- Laravel 8 application scaffold
- Authentication scaffold
- Set up local mySQL database
- Makefile set up
- Integrate social log in
- Composer download front-end dependencies, such as CSS Bootstrap and jQuery libraries
- Heroku set up
- TravisCI set up
Set up the Objects - migration, models, factory, seeders
- Create test user login details
- Set up the Objects - migration, models, factory, seeders
- User
- Course
- Session
- Set up database schema for user_session join table
make start
make migrate-fresh
The application is pre-configured with two user accounts for varying user permission levels.
Login Details:
- Email:
volunteer@test.com
- Email:
admin@test.com
Password for both user accounts: password
- Git clone repository,
- Install PHP, mySQL, Composer, and GNU's Make software.
- Set up a local mySQL database named
cfg_volunteers
(details below) - Run the command
make migrate-seed
to run database migrations and seeders, - Compile CSS UI resources by running
npm install
, and build dev assets runningnpm run dev
, - Run
make start
to start the server. View application on your localhost.
See Makefile for a list of commands available in the application.
-
Install the mySQL client.
-
Run the mySQL client -
$ mysql -u root -p
-u
- user flagroot
- database user login-p
- password flag. You will be prompted to enter a password. Submit enter, with a blank password.
-
Create a local database the application can interact with:
CREATE DATABASE cfg_volunteers;
- Run the query
SHOW DATABASES;
, to confirm your database has been created.
- Run the query
-
In the
.env
file (line 9-15), update the Database Connection config to match the database you configured locally.DB_CONNECTION
,DB_HOST
,DB_PORT
- you should not have to update these,DB_DATABASE
- update with the name of your Database (e.g.cfg_volunteers
),DB_USERNAME
,DB_PASSWORD
- represent your personal mySQL user credentials.
-
Once your
.env
config is setup, runmake migrate
to verify your Database connection and run migrations.
- PHP 7.3.11
- Laravel Framework 8.9.0
- Composer, Dependency Manager
- mySQL Database
- Eloquent, Database Object Relational Mapping (ORM)
- HTML, Blade templates
- CSS, Bootstrap library
- JavaScript, jQuery library