https://github.com/sensational-code/laravel-change-calculator
A currency change calculator written with Laravel 8 and Vue.js
https://github.com/sensational-code/laravel-change-calculator
javascript laravel php vuejs
Last synced: 2 months ago
JSON representation
A currency change calculator written with Laravel 8 and Vue.js
- Host: GitHub
- URL: https://github.com/sensational-code/laravel-change-calculator
- Owner: Sensational-Code
- Created: 2020-08-24T04:35:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-19T08:50:34.000Z (over 4 years ago)
- Last Synced: 2025-12-28T09:59:12.333Z (6 months ago)
- Topics: javascript, laravel, php, vuejs
- Language: PHP
- Homepage:
- Size: 245 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-change-calculator
A currency change calculator written with Laravel 8 and Vue.js
## Install and setup database
Install MySQL via the installer or homebrew
```
brew install mysql
```
Ensure the MySQL server is running
```
mysql.server start
```
Open the MySQL prompt (password should be blank or "password" by default)
```
mysql -u root -p
```
Set a password for your desired user
```
ALTER USER 'root'@'localhost' IDENTIFIED BY 'apasswordyouwillremember';
```
Create a database to use for the project and exit
```
create database laravel_change_calculator;
exit;
```
## Install
Clone this repo to your local machine
```
git clone https://github.com/Sensational-Code/laravel-change-calculator
```
Navigate into the project directory
```
cd laravel-change-calculator
```
Install dependencies
```
composer install
npm install
```
Copy the `.env.example` and rename it `.env` within the project directory
Fill in the `DB_` fields within the `.env` file to point to the database you wish to use
Generate an encryption key
```
php artisan key:generate
```
Migrate and seed the database
```
php artisan migrate:fresh --seed
```
Run the webpack build
```
npm run dev
```
## Usage
Ensure you are in the project directory and serve the Laravel project
```
php artisan serve --port=8000
```
Then visit http://localhost:8000 in your web browser of choice