Skip to content

Commit 8bbbe16

Browse files
committed
2 parents c630aa1 + 14423ee commit 8bbbe16

File tree

2 files changed

+49
-69
lines changed

2 files changed

+49
-69
lines changed

.github/workflows/laravel.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
1616
with:
17-
php-version: '8.0'
17+
php-version: '8.3'
1818
- uses: actions/checkout@v4
1919
- name: Copy .env
2020
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
@@ -27,9 +27,9 @@ jobs:
2727
- name: Create Database
2828
run: |
2929
mkdir -p database
30-
touch database/database.sqlite
30+
touch database/database.mysql
3131
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
3232
env:
33-
DB_CONNECTION: sqlite
34-
DB_DATABASE: database/database.sqlite
33+
DB_CONNECTION: mysql
34+
DB_DATABASE: database/database.mysql
3535
run: php artisan test

README.md

+45-65
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,46 @@
1-
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
2-
3-
<p align="center">
4-
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
5-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
6-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
7-
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
8-
</p>
9-
10-
## About Laravel
11-
12-
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
13-
14-
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15-
- [Powerful dependency injection container](https://laravel.com/docs/container).
16-
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17-
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18-
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19-
- [Robust background job processing](https://laravel.com/docs/queues).
20-
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21-
22-
Laravel is accessible, powerful, and provides tools required for large, robust applications.
23-
24-
## Learning Laravel
25-
26-
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
27-
28-
You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
29-
30-
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
31-
32-
## Laravel Sponsors
33-
34-
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
35-
36-
### Premium Partners
37-
38-
- **[Vehikl](https://vehikl.com/)**
39-
- **[Tighten Co.](https://tighten.co)**
40-
- **[WebReinvent](https://webreinvent.com/)**
41-
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
42-
- **[64 Robots](https://64robots.com)**
43-
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
44-
- **[Cyber-Duck](https://cyber-duck.co.uk)**
45-
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
46-
- **[Jump24](https://jump24.co.uk)**
47-
- **[Redberry](https://redberry.international/laravel/)**
48-
- **[Active Logic](https://activelogic.com)**
49-
- **[byte5](https://byte5.de)**
50-
- **[OP.GG](https://op.gg)**
51-
52-
## Contributing
53-
54-
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
55-
56-
## Code of Conduct
57-
58-
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
59-
60-
## Security Vulnerabilities
61-
62-
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
63-
1+
# Ứng Dụng Thi Trắc Nghiệm - HPC
2+
3+
## Giới Thiệu
4+
Đây là một ứng dụng thi trắc nghiệm dành cho sinh viên của trường Cao Đẳng Công Nghệ Bách Khoa Hà Nội (HPC). Ứng dụng được phát triển nhằm giúp nhà trường tổ chức các kỳ thi một cách hiệu quả, với các tính năng quản lý kỳ thi, ca thi, đề thi, câu hỏi... và kết quả thi.
5+
6+
## Công Nghệ Sử Dụng
7+
- **Backend**: Laravel 11 (PHP Framework)
8+
- **Frontend**: HTML, CSS, JavaScript
9+
- **Cơ sở dữ liệu**: MySQL
10+
- **Client-Side**: C#
11+
- **API Authentication**: Laravel Sanctum
12+
13+
## Chức Năng
14+
1. **Quản lý sinh viên**: Thêm, sửa, xóa sinh viên.
15+
2. **Quản lý câu hỏi thi**: Thêm câu hỏi, cập nhật và xóa câu hỏi.
16+
3. **Tổ chức kỳ thi**: Tạo kỳ thi, gán câu hỏi cho kỳ thi và phân công sinh viên tham gia.
17+
4. **Tính điểm tự động**: Tính toán và lưu trữ điểm của sinh viên sau khi hoàn thành bài thi.
18+
5. **Hệ thống đăng nhập bảo mật**: Sử dụng Laravel Sanctum để xác thực người dùng.
19+
6. **API RESTful**: Tích hợp API cho ứng dụng thi, cho phép sử dụng trên nhiều nền tảng.
20+
21+
## Cài Đặt và Cấu Hình
22+
23+
```bash
24+
git clone [https://github.com/your-repo-url/hpc-thi-trac-nghiem.git](https://github.com/copecute/trac-nghiem-hpc.git)
25+
cd hpc-thi-trac-nghiem
26+
composer install
27+
npm install
28+
cp .env.example .env
29+
php artisan key:generate
30+
php artisan migrate --seed
31+
php artisan serve
32+
```
33+
## Cấu Trúc Dự Án
34+
- app/Models: Chứa các model như SinhVien, CauHoi, KyThi, ...
35+
- app/Http/Controllers: Chứa các controller điều khiển logic.
36+
- resources/views: Chứa các view blade cho giao diện người dùng.
37+
- routes/web.php: Định nghĩa các route web.
38+
- routes/api.php: Định nghĩa các route API cho ứng dụng.
39+
40+
## Thực Hiện Test
41+
Chạy tất cả các Unit và Feature test với lệnh:
42+
```bash
43+
php artisan test
44+
```
6445
## License
65-
66-
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
46+
sắp có

0 commit comments

Comments
 (0)