-
How to run:
cd zippark && npm install && source .env && npm start
- wait for auto open on browser for localhost:3000 for the web ui for testing
-
Technologies Used
- Typescript
- Framework: Wundergraph Backend-For-Frontend Graphql/REST
- Libraries used:
- Notable:
- Temporal lib to manage date+time
- Supplemental:
- NextJs + React Query for a quick frontend mainly or manual testing
- Prisma ( no need to run prisma migration, because schema and sample data alsready exists in the live database)
- Notable:
- Typescript
- Parking Start
curl http://localhost:9991/operations/parking/mutations/StartParking?wg_api_hash=1fa113c3' --data-raw '{"vehicleCode":"2W","entranceCode":"E1"}
- Parking Exit
curl http://localhost:9991/operations/parking/mutations/FinishParking?wg_api_hash=1fa113c3' --data-raw '{"parkingTransactionId":"2"}
- live DATABASE_URL=postgresql:/username:[email protected]:5432/postgres -- the db credentials still available in history was already revoked minutes after this repo was moved from private to public
Prisma Schema for additional reference
cd zippark && source .env && npm test