https://github.com/getcandy/api-boilerplate
A starting point for the GetCandy v1 API with Laravel Sanctum
https://github.com/getcandy/api-boilerplate
Last synced: 12 months ago
JSON representation
A starting point for the GetCandy v1 API with Laravel Sanctum
- Host: GitHub
- URL: https://github.com/getcandy/api-boilerplate
- Owner: getcandy
- Created: 2021-03-23T12:45:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T09:45:49.000Z (about 5 years ago)
- Last Synced: 2025-04-06T03:34:08.240Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 104 KB
- Stars: 8
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Boilerplate
This boilerplate is a Laravel App that has got the GetCandy API and Sanctum preconfigured out the box.
## Usage
Copy `env.example` to `.env`
Install dependencies
```bash
composer install
```
Run the installer
```bash
php artisan candy:install
```
Boot up the API
```bash
php artisan serve --host=localhost
```
## Features
- Sanctum configured out the box
- Initial `login` and `logout` routes added to authenticate users
- CORS set up
- Ready to be used with the hub