Skip to content

joeyabou/application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI Status Quality Gate Status License

About CSU Booking Platform

A tool to improve location and equipment reservation workflow for clubs, students and faculty members.

You must have the ZenHub Extension installed for your browser to properly our issue board and sprints.

Installation

Hard Requirements

  • Some web server: Apache / Nginx / Caddy
  • Postgres > 12
  • PHP >= 7.4
  • PHP extensions you might not have by default: bcmath, pgsql
  • composer
  • node and npm
  • xdebug is always a plus

Use any XAMPP/ MAMP like tools, I recommended laragon on win or valet/valet+ on mac

First-Time Setup Steps

  1. once you clone the repo run composer fresh, it will run a batch of the starter commands.
  2. Open the .env and configure it to work with what you need, namely the DB connection
  3. Create a database matching the connection details in your .env
  4. Create the db schema and seed it with random values with composer mfs
  5. verify your setup is functional with php artisan self-diagnosis
  6. Access the app through your preferred local web server setup (I like valet+ on macs & laragon on win... ghetto way: php artisan serve with sqlite db)
Need More Details?

Bonus Commands

  • When you see DB issues run php artisan migrate:fresh --seed (composer mfs for short) to quickly recreate the db tables and seed it with random data
  • If you just need more random data in the db run php artisan db:seed
  • When everything goes to hell run composer fresh or composer reset if you think its related to composer dependencies
  • npm run dev or npm run watch for frontend dev build, the watch command will recompile when files are changed

Docs for all the things

Usage

Website

Navigate to your local site. Varies depending on web server. Could be localhost:8000, could be csu.test 🤷

API

Look at routes/api.php file for a quick view of api specific routes that are defined for this application. Postman or Insomnia are good tools for building out api endpoint collections.

Console

Tinker is the primary tool for testing queries, php logic, and debugging weird code... Basically your best friend. Open it with php artisan tinker. It's an interactive repl php shell that makes it quick & easy to dumbass proof your code.

Testing

PHPUnit

Yu can run php artisan test to run all the test suites. Normally your IDE can be configured to run specific tests or all of them. Refer to specific IDE documentation.

Jest

Again, your IDE should recognize these tests and help you create a run configuration for those. To run everything from console use npm run test.

Debugging

For PHP, make sure your install the XDebug PHP extension and configure it properly. I like to use remote autostart to avoid hassle and quickly debug my code.

Resources

We'll be using the laravel framework for this project. A good place to start learning all of this scary new tech is Laracasts, specifically the laravel from scratch series & Vue 2 Step by step.

Video Tutorials

Architecture and Design Inspiration

Laravel Best Practices and Design Pattern Resources

License

This booking application is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 57.0%
  • Vue 41.0%
  • Blade 1.7%
  • Other 0.3%