Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kemalyen/easy-peasy-customer-portal-api-backend
https://github.com/kemalyen/easy-peasy-customer-portal-api-backend
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kemalyen/easy-peasy-customer-portal-api-backend
- Owner: kemalyen
- Created: 2023-08-27T14:36:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T20:28:34.000Z (over 1 year ago)
- Last Synced: 2023-08-31T01:09:08.630Z (over 1 year ago)
- Language: PHP
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Easy Peasy Portal Backend API
This demo project includes a quickstart using Sanctum Authentication for SPA and Eloquent Resources.
## Installation
First clone the reporsitory
Run composer to install PHP dependencies:```sh
composer install
```
Don't forget to update environment!I prefer to use sqlite, easy and basic. This will also create
So update environment file to use with sqlite:
```sh
DB_CONNECTION=sqlite
```and now Laravel will create a sample database and create the structure for us.
```sh
php artisan migrate
```Now let's put some sample data
```sh
php artisan db:seed
```And now start the built in server
```sh
php artisan serve
```Our website must be running on localhost and Vite will serve the frontend codes on localhost:5173.
Username: [email protected]
Password: passwordSample .env
```sh
FRONTEND_URL=http://localhost:5173SANCTUM_STATEFUL_DOMAINS=localhost:5173
SESSION_DOMAIN=localhost
```## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).