https://github.com/imrany/qr-pay-server
Serving request from qr-pay
https://github.com/imrany/qr-pay-server
Last synced: 3 months ago
JSON representation
Serving request from qr-pay
- Host: GitHub
- URL: https://github.com/imrany/qr-pay-server
- Owner: imrany
- License: gpl-3.0
- Created: 2024-07-28T13:43:58.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T07:47:19.000Z (8 months ago)
- Last Synced: 2025-01-19T23:19:59.568Z (4 months ago)
- Language: TypeScript
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qr Pay Server
Scan to pay.# Contribution
Fork the repo then clone
```bash
git clone https://github.com/imrany/qr-pay-server.api
```
then
```bash
cd Wekafile.api
```
Engine configurations,
ensure you have
`node v14.19.1`
and
`npm v6.14.16`
then
```bash
npm i
```Then Run
```bash
docker-compose up -d
```
### Run migration
sqlx migrate run### To add Student record
On Unix
```bash
curl --header "Content-Type: application/json" --request POST --data '{"full_name":"full name","school":"SSAE","registration_number":"CSC/000/2021","type":"student","id_number":"23456789","year_of_entry":"2021","year_of_exit":"2025","academic_year":"2024/2025","semester":1,"campus":"MAIN","course":"Bachelor in computer science","phone_number":"2547xxxxxxxx"}' http://localhost:8080/api/identify/add```On windows
```bash
curl --header "Content-Type: application/json" --request POST --data "{\"full_name\":\"full name\",\"school\":\"ssae\",\"registration_number\":\"CSC/000/2021\",\"type\":\"student\",\"id_number\":\"23456789\",\"year_of_entry\":\"2021\",\"year_of_exit\":\"2025\",\"academic_year\":\"2024/2025\",\"semester\":1,\"campus\":\"MAIN\",\"course\":\"Bachelor in computer science\",\"phone_number\":\"2547xxxxxxxx\"}" http://localhost:8080/api/identify/add```### Get student access record
```bash
curl --request GET http://localhost:8080/api/admin/track_access
```