Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vix-4800/laravel-posts-json-api
- Owner: vix-4800
- Created: 2024-02-23T11:53:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T21:19:24.000Z (11 months ago)
- Last Synced: 2024-11-07T21:38:58.463Z (3 months ago)
- Language: PHP
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)