https://github.com/byte5digital/assesment
https://github.com/byte5digital/assesment
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/byte5digital/assesment
- Owner: byte5digital
- Created: 2024-02-19T07:31:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T15:57:09.000Z (about 2 years ago)
- Last Synced: 2025-01-16T03:30:31.076Z (over 1 year ago)
- Language: PHP
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Promoter Management
Deployment
- Install Composer if you haven't already.
- Create a .env file and configure the database connection.
- Run php artisan key:generate to generate the application key.
- Run php artisan migrate to perform the database migrations.
- To populate test data into the database, first execute the seeders for skills and then for promoters:
- php artisan db:seed --class=SkillSeeder
- php artisan db:seed --class=PromoterSeeder
- Start the Laravel development server with php artisan serve.
Documentation and Test Functions
- Visit http://127.0.0.1:8000/api/documentation#/ to view the API documentation and test the API.
- In the api-docs directory, you'll find an api-docs.json file. You can use this file to generate TypeScript clients or other documentation as needed.
- To generate TypeScript clients from the API documentation, follow these steps:
- 1.Locate the api-docs.json file in the api-docs directory.
- 2.Use a tool or library, such as Swagger Codegen, to generate TypeScript clients based on the JSON file.
- 3.Customize the generated TypeScript code according to your project's requirements.