A website and web application for the Chocolate Milk Mile. event details, photography, a sign up page and online payment
- Event landing page with details
- Photos of the event
- Our Story(History of event along with Noah Farrelly Story)
- Media/Contact
- Event registration
- Payment for registration (Stripe Elements + API)
Make sure you're installing this within your Laravel Valet Sites
directory. This works best.
- Ensure you're within your Laravel Valet
Sites
directory. This is where all of the Laravel Sites are served from. This is essential. - Clone the
TheFundamentalShape/ChocolateMilkMile
git repository on your local machine by runninggit clone https://github.com/TheFundamentalShape/ChocolateMilkMile.git
. - This will download a folder titled
ChocolateMilkMile
. You need to change the name of this folder tocmm
so that BrowserSync will work properly. This is a tool that automatically updates your browser whenever you make a change to your code. It's really helpful, and I won't bore you with how it works or why you need to change the name of the folder tocmm
. Just do it. *insert Shia LaBeouf just do it gif here* - Install all of Laravel's dependency libraries via Composer on the command line through the
composer install
command. - Install all of the NodeJS dependencies with
npm install
, which is also on the command line. - Once all of that installs, you'll want to run the
npm run watch
script once everything above is installed to automatically recompile your CSS and JS whenever a change is made, and automatically reflect those changes in your browser.
Note: If you run
npm run watch
command and it gets all poopy, run it again. It might have had to pull in some random dependency. Try it again and if it fails again, just tell mom. She won't get mad at you.
If you get a 500 error when booting your app up for the first time, you're probably missing an APP_KEY
in your apps .env
file. Fill this missing key in by running php artisan key:generate
from the command line, within your app's folder. If that fails, you're probably missing an .env
file for your app. Simply add a new file called .env
or just rename .example.env
to be .env
.
Groovy, you already have a copy of this repo downloaded, installed, and running properly! But oh-oh, Louie made yet another change to it! Now what the hell do I do?!
- Check with GitHub to see if your branch is behind the master branch. You can do this by running
git fetch
. - After fetching the status of the GitHub repo, pull in any changes by running
git pull
. - Once you have the most recent changes, run
npm run watch
and that should compile your CSS and JS files, and generate a live-server that will update in your browser whenever you make a change to your code. (For this feature to work however, your application's parent folder needs to be namedcmm
. Otherwise NPM will become the alcoholic father you never had and will start beating your ass.)
The general workflow will be as follows:
- Check for any changes in GitHub (
git fetch
) - Stash any changes you've made (
git stash
) - Pull the changes from GitHub (
git pull
) - Run
git stash pop
to pull your changes out of the Git stash. - Use PhpStorm to fix any merge conflicts (always accept theirs, meaning my changes)