Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vkazakevich/slim-vue-app
Demo application on Slim 4 bundled with Eloquent and OpenAPI, and Vue 3 on the client side.
https://github.com/vkazakevich/slim-vue-app
docker-compose eloquent openapi3 php8 pinia primevue slim4 swagger vue3
Last synced: 16 days ago
JSON representation
Demo application on Slim 4 bundled with Eloquent and OpenAPI, and Vue 3 on the client side.
- Host: GitHub
- URL: https://github.com/vkazakevich/slim-vue-app
- Owner: vkazakevich
- License: mit
- Created: 2023-07-10T20:05:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-11T06:46:48.000Z (over 1 year ago)
- Last Synced: 2024-11-16T09:24:34.518Z (3 months ago)
- Topics: docker-compose, eloquent, openapi3, php8, pinia, primevue, slim4, swagger, vue3
- Language: PHP
- Homepage:
- Size: 75.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim 4 + Vue 3 application
Project demonstrating using the Slim 4 framework to create a Restful API. The database is powered by Eloquent, and the client side is developed using Vue 3.
## Getting Started
Here you can see how to setup the project. Since the project is using docker you have to have it installed and running.
Use the following commands to initialize the project:
```bash
# You can now edit the settings in the .env file
cp .env.example .env# Run docker build command
make build# Install the Composer dependencies
make composer-install# Create a database
make create-database
```To populate the database with fake values, use the following command:
```bash
make populate-database
```To stop or start the container, use `make start` and `make stop`.
The project is accessible by `localhost:8080` host.
## Postman
For your convenience, this repository has a [OpenAPI Specification](./openapi.json) that can be imported into Postman ([more details](https://learning.postman.com/docs/integrations/available-integrations/working-with-openAPI/)).