- clone this repo and extract AntonAPI.rar
- Open the project contained in AntonAPI.rar in netbeans
- In netbeans click 'Services' then 'Databases' use the second mouse button on 'Java DB' click 'Create Database'
- Name your database "restaurantDB" this is important
- Something similarlly named to "jdbc:derby://localhost:1527/restaurantDB [ on APP]" should appear.
- Connect to jdbc:derby://localhost:1527/restaurantDB [ on APP].
- Use the second mouse button on jdbc:derby://localhost:1527/restaurantDB [ on APP] and choose "execute command"
- Paste in the contents of java_db_run.sql and 04_insert_values.sql (these files exist in this repo)
- To connect to the database use the baseURL http://YOUR LOCAL IP ADDRESS NOT LOCALHOST:8080/AntonAPI/webresources since Java runs on a virtual machine you can't use local host so replace YOUR LOCAL IP ADDRESS NOT LOCALHOST with your local ip address should be 192.168.0.... something
- in android studio change the BASE_URL in ApiUtils to your new URL.
- Lunch menu
- Dinner menu
- Events
- Schedule
- Personell
- Orders
- Table booking
- Table
- Drinks(maybe not?)
- Webpage ska konsumera API:et
- Mobile app ska konsumera API:et
- Admin webpage ska uppdatera/modifiera API:et
- Protect admin web page against unauth access (example a customer that is on the guest wifi sharing the IP)