https://github.com/utopia-php/demo
A simple demo for using Utopia + Swoole on a Docker container 🐳
https://github.com/utopia-php/demo
hacktoberfest swoole utopia
Last synced: 9 months ago
JSON representation
A simple demo for using Utopia + Swoole on a Docker container 🐳
- Host: GitHub
- URL: https://github.com/utopia-php/demo
- Owner: utopia-php
- License: mit
- Created: 2021-03-10T12:47:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T14:33:50.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T22:11:11.653Z (9 months ago)
- Topics: hacktoberfest, swoole, utopia
- Language: PHP
- Homepage: https://appwrite.io
- Size: 44.9 KB
- Stars: 8
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Demo of utopia-php/swoole
This project uses the [Utopia framework](https://github.com/utopia-php/framework) and [Swoole](https://github.com/utopia-php/swoole) to build a very simple API, demonstrating how to define routes and start the server, both found in the server entrypoint `./app/server.php`.
## Install
```bash
git clone https://github.com/utopia-php/demo
cd demo
docker-compose up -d
```
## Use
The docker-compose config will mount the root folder to `/app` in the container, so you can actively develop your code. To apply changes, restart the stack with:
`docker-compose restart`
## Request Flow

## Resources
- [utopia-php/framework](https://github.com/utopia-php/framework)
- [utopia-php/swoole](https://github.com/utopia-php/swoole)
- [utopia-php/cli](https://github.com/utopia-php/cli)