The application is available online at ReservationAPP.
That project allows you to reserve seats based on provided API.
In the app there are three views. Let me explain what each of them is responsible for.
In the home view you can choose seats number and check option that allows you to find seats next to each other. If it isn't possible you will see error message.
That view allows you to see which seats are reserved or not. You can choose seats you need and confirm reservation by clicking on submit button.
Summary of your reservation. Here you can see all seats that you reserved in previous view.
You should download db.json from https://bitbucket.org/xkom/zadanie_rekrutacyjne/src/master/ and run example json server using command
npm run api
Then clone down this repository, create .env file in project catalog and add enviroment variable to that file with json server url
REACT_APP_API_URL = 'your api url'
Installation:
npm install
To Start Server:
npm start
To Visit App:
localhost:3000
[ReservationAPP] is done. All tasks have been implemented.
MIT license @ Sebastian Wąwoźny