Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vix-4800/laravel-posts-json-api


https://github.com/vix-4800/laravel-posts-json-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# LOCAL JSON:API

## Installation

Create a .env file by copying and renaming .env.example. Configure your environment settings. Uncomment DB_HOST for Docker or leave it commented out for basic installation.

### Using docker

- Install Laravel Dependencies

docker run --rm -v $(pwd):/opt -w /opt laravelsail/php83-composer composer install --no-progress --no-interaction

### Without docker

- Install Laravel Dependencies

composer install --ignore-platform-reqs --no-progress --no-interaction

## After installation

### Start the application

- `make start` - docker and makefile

- `./vendor/bin/sail up -d` - docker without makefile

- `php artisan serve` - without docker

### Run migrations and seeders

- `./vendor/bin/sail artisan migrate --seed` - docker without makefile

- `php artisan migrate --seed` - without docker

You can access the application using API at:

(without docker)

or

(docker / sail)