Backend for Design 4 San Diego.
cp .env.example .env
composer install
npm install && npm run production
php artisan migrate
php artisan serve
- PHP
- Composer
- NodeJS + npm
- MySQL
If you don't already have node and npm installed, visit the node website to download and install the proper package. npm comes standard with node as a package so no need to install it separately.
Using nvm is recommended to help manage node versions.
Use this command to install the required packages:
npm install
Use this command to install the required PHP packages:
composer install
Using Laravel Valet is recommended to make your life easier.
On macOS, make sure you have Homebrew installed.
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install php71
brew install composer
Make sure to place the ~/.composer/vendor/bin directory
in your PATH
Choose one method:
If you're using macOS, using Laravel Valet is highly recommended.
Make sure you have Homebrew installed.
brew install
brew update
brew install homebrew/php/php71
composer global require laravel/valet
You can use Laravel's built-in server but it's not highly recommended:
php artisan server
This will allow you to access the server at 127.0.0.1:8000
.
If you're using another web server (nginx, apache, etc.) configure the public
folder to be your document root.
If you don't have MySQL already.
brew install mysql
mv .env.example .env
Edit the values in .env
with your local values.
composer install
- Install PHP packages
npm install
- Install node packages for frontend build
php artisan migrate
For development
npm run dev
For production
npm run prod
npm run docs
- Generate docs/index.html
npm run docs:serve
- Serve docs at http://localhost:3000
This project is using Travis CI to check builds. Builds will be checked when commits are pushed.
Run tests
phpunit