An open API service indexing awesome lists of open source software.

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

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