A graphics-based online bookstore programmed using the Java programming language and postgresSQL as the backend database.
There are different ways for you to set up the database:
- Create a database server in port 5433 on your device.
- Create a user called "postgres" (done automatically by pgAdmin).
- Set the password to "1234".
- Add a new database called "COMP3005Project" to the server.
- Create your database using your preferred information (modify the ConnectionManager according to your configuration).
There are different ways for you to run the application:
- Setup your database connection.
- Make a pull request from this repository into your favourite version control IDE (e.g. Intellij, Visual Studio Code).
- Modify the ConnectionManger.java class if you used option 2 to set up the database.
- Run the code in the Main.java class.
- Setup your database connection using option 1.
- Download the JAR file.
- Open the JAR file location in your terminal.
- Run the command "java OnlineBookstore.jar".
- Setup your database connection using option 2.
- Download the JAR file and extract its contents.
- Modify the ConnectionManager.java to have your configured database settings.
- Run the Main.java class.
- To sign in as an admin, the username is "TA" and the password is "123456".
- NOTE: Only admins can add new admins. There are previously defined admins.