{"id":46599129,"url":"https://github.com/dacrab/beauty-salon-scheduling-api","last_synced_at":"2026-03-07T15:37:34.735Z","repository":{"id":319271130,"uuid":"1057904679","full_name":"dacrab/beauty-salon-scheduling-api","owner":"dacrab","description":"Beauty Salon Scheduling API (Laravel 12, Docker, Nginx, SQLite). Endpoints: slots, book, cancel. Bearer auth. Seeders + tests.","archived":false,"fork":false,"pushed_at":"2026-03-02T21:03:50.000Z","size":235,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-02T23:31:36.567Z","etag":null,"topics":["docker","laravel","nginx","php","rest-api","sqlite"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacrab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T11:10:10.000Z","updated_at":"2026-03-02T21:03:55.000Z","dependencies_parsed_at":"2025-10-18T17:03:07.887Z","dependency_job_id":"4f90e713-f42f-406a-b4b5-04f9c9c10686","html_url":"https://github.com/dacrab/beauty-salon-scheduling-api","commit_stats":null,"previous_names":["dacrab/beauty-salon-scheduling-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacrab/beauty-salon-scheduling-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacrab%2Fbeauty-salon-scheduling-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacrab%2Fbeauty-salon-scheduling-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacrab%2Fbeauty-salon-scheduling-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacrab%2Fbeauty-salon-scheduling-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacrab","download_url":"https://codeload.github.com/dacrab/beauty-salon-scheduling-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacrab%2Fbeauty-salon-scheduling-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","laravel","nginx","php","rest-api","sqlite"],"created_at":"2026-03-07T15:37:34.111Z","updated_at":"2026-03-07T15:37:34.721Z","avatar_url":"https://github.com/dacrab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beauty Salon API\n\nSimple REST API for a beauty salon scheduling system built with Laravel 12. Fully containerized (Nginx + PHP-FPM) and ready to run with Docker.\n\n## Quick Start (Docker)\n\n1) Clone and enter the project\n```bash\ngit clone https://github.com/dacrab/beauty-salon-scheduling-api.git\ncd beauty-salon-scheduling-api\n```\n\n2) Create env file and set API token\n```bash\ncp .env.example .env\necho \"API_TOKEN=your-secret-api-token\" \u003e\u003e .env\n```\n\n3) Start the stack\n```bash\ndocker compose up --build -d\n```\n\n4) App key, migrate, and seed\n```bash\ndocker compose exec app php artisan key:generate\ndocker compose exec app php artisan migrate:fresh --seed\n```\n\nBase URL: `http://localhost:8081`\n\n## Authentication\n\nAll endpoints require a bearer token header:\n```\nAuthorization: Bearer \u003cyour-secret-api-token\u003e\n```\n\n## Endpoints\n\n1) List available slots\n```bash\ncurl -H \"Authorization: Bearer \u003ctoken\u003e\" \\\n  \"http://localhost:8081/api/slots?date=2025-09-16\u0026service_id=1\u0026specialist_id=1\"\n```\n\n2) Book an appointment\n```bash\ncurl -X POST \\\n  -H \"Authorization: Bearer \u003ctoken\u003e\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"date\":\"2025-09-16\",\"service_id\":1,\"specialist_id\":1,\"start_time\":\"14:30\"}' \\\n  \"http://localhost:8081/api/book\"\n```\n\n3) Cancel an appointment\n```bash\ncurl -X DELETE -H \"Authorization: Bearer \u003ctoken\u003e\" \\\n  \"http://localhost:8081/api/appointments/5\"\n```\n\n## Tests\n```bash\ndocker compose exec app php artisan test\n```\n\n## Reminder Command (bonus)\nSimulates sending reminders for appointments starting in ~3 hours. Writes to `storage/logs/laravel.log`.\n```bash\ndocker compose exec app php artisan appointments:send-reminders\n```\n\n## Assumptions\n- Working hours: 09:00–18:00\n- Slot starts every 30 minutes\n- SQLite for portability\n- Appointments are canceled via a `canceled` flag (not deleted)\n\n## Project Structure (short)\n```\napp/                # Controllers, Middleware, Models\ndatabase/           # Migrations, seeders, SQLite file\ndocker/             # Nginx + PHP-FPM config\nroutes/             # API routes and console commands\ntests/Feature/      # Feature tests for booking flow\ndocker-compose.yml  # Services (app, web)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacrab%2Fbeauty-salon-scheduling-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacrab%2Fbeauty-salon-scheduling-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacrab%2Fbeauty-salon-scheduling-api/lists"}