The REST API for the Point of Sale System
- Fork the repository to your playground. This is important.
- Clone the project
git clone https://github.com/Direct-Entry-Program-7/pos-api.git - Open the project with IntelliJ IDEA (Make sure to open via
pom.xml) - Open the Database Tool Window and setup a new MySQL datasource
- Open the db-script.sql file and execute the whole script via the database console
- Open the src/main/webapp/META-INF/context.xml and change the
usernameandpassword - Double press the
Ctrlkey or open the integrated terminal and then executemvn clean package - Press
F9and selectEdit Configurations- Click on
Add new run configurationand set up a Local Tomcat Server - On the
Servertab, under theOpen Browseruncheck theAfter Launchcheck box - On the
Deploymenttab, add the artifact and set the context path topos
- Click on
- Run the Tomcat Server and wait until the deployment is successful (Check the log)
- Open an HTTP GET request and try http://localhost:8080/pos/customers and it should display a JSON array, if not please troubleshoot the error before proceeding
- Servlet 5 (Tomcat 10)
- JSONB (Yasson)
- Junit 5
- Tomcat DBCP
Copyright © 2021 DEP7. All Rights Reserved. License under the MIT license.