https://github.com/jojoarianto/parking-lot
Gojek Backend Assignment Test
https://github.com/jojoarianto/parking-lot
backend go shell
Last synced: 2 months ago
JSON representation
Gojek Backend Assignment Test
- Host: GitHub
- URL: https://github.com/jojoarianto/parking-lot
- Owner: jojoarianto
- Created: 2019-04-18T09:26:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-19T14:20:54.000Z (about 7 years ago)
- Last Synced: 2025-06-03T03:22:15.151Z (about 1 year ago)
- Topics: backend, go, shell
- Language: Go
- Size: 153 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parking Lot
Shell app to simulate parking system

## how to play
run install/download depedencies & unit testing
```bash
bin/setup
```
run functional spec
```bash
bin/run_functional_tests
```
run shell app
```bash
bin/parking_lot
```
### project structure
```
src/
handlers/
parking.go
models/
car.go
parking.go
service/
parking.go
main.go
go.mod
Makefile
```
## checkpoint
- [X] list feature of parking lot app
- [x] create parking slot
- [x] cek status parking slot
- [X] new car come to park
- [x] car exit / leave
- [x] search car by colour
- [x] search slot by car colour
- [x] search slot by car platno
- [X] input from typing
- [X] input from file
- [x] exit from app
- [X] git commit
- [X] readme
- [ ] unit testing
- [X] helpers
- [ ] handlers
- [ ] services
### functional test result
```bash
example_id | status | run_time |
-------------------------------- | ------- | --------------- |
./spec/end_to_end_spec.rb[1:1:1] | passed | 0.05352 seconds |
./spec/end_to_end_spec.rb[1:1:2] | passed | 12.12 seconds |
./spec/parking_lot_spec.rb[1:1] | passed | 0.8121 seconds |
./spec/parking_lot_spec.rb[1:2] | passed | 1.12 seconds |
./spec/parking_lot_spec.rb[1:3] | passed | 1.42 seconds |
./spec/parking_lot_spec.rb[1:4] | passed | 2.03 seconds |
./spec/parking_lot_spec.rb[1:5] | pending | 0.00004 seconds |
```