Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Added installation notes. #15

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SENTRY_DSN=https://010d7609ed9a4908a204f1187dd64752@o87286.ingest.sentry.io/5412551
#SENTRY_LARAVEL_DSN=https://acbea35c7d334b968b72842b5c9d188e@o87286.ingest.sentry.io/5443928
SENTRY_DSN=https://acbea35c7d334b968b72842b5c9d188e@o87286.ingest.sentry.io/5443928
SENTRY_ORG=testorg-az
SENTRY_PROJECT=laraveladam
SENTRY_PROJECT=rohit-laravel-test

APP_NAME=Laravel
APP_ENV=local
Expand Down
47 changes: 47 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

### 1. Installing php

* PHP comes prepackged with MacOS
```
$php --version
PHP 7.3.11 (cli) (built: Apr 17 2020 19:14:14) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
```

### 2. Installing composer

* Download [composer](https://getcomposer.org/download/)


If you didn't use the `--install-dir` and the `--filename` options, please:

`mv composer.phar /usr/local/bin/composer`

Or choose whichever location you prefer, perhaps `/usr/bin/`, depending on your PATH.

This is because:
* The dfault name of the binary is `composer.phar`
* The default installation path is the current directory.


```
$composer --version
Composer version 1.10.13 2020-09-09 11:46:34
```


3. Installing Laravel
* Laravel install [Docs](https://laravel.com/docs/8.x#installing-laravel) for reference.

`composer global require laravel/installer`


Edit your ~/.bashrc or ~/.zshrc to add:

`export PATH="$PATH:$HOME/.composer/vendor/bin"`

```
$laravel --version
Laravel Installer 4.0.5
```
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SENTRY_AUTH_TOKEN

SENTRY_ORG=testorg-az
SENTRY_PROJECT=laraveladam
SENTRY_PROJECT=rohit-laravel-test
VERSION=`sentry-cli releases propose-version`
COMMIT_SHA=$(shell git rev-parse HEAD)
WHOAMI=$(shell whoami)
Expand Down
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
| contains the "web" middleware group. Now let's create something great!
|
*/
//Auth::routes();
Expand Down Expand Up @@ -73,7 +73,7 @@ function process_order(array $cart) {
error_log("IN PROCESS ORDER");
foreach ($cart as $item) {
if (isOutOfStock($item)) {
throw new Exception("Not enough inventory for " . $item->id);
throw new Exception("Not enough inventory for :" . $item->id);
} else {
decrementInventory($item);
}
Expand Down