GithubHelp home page GithubHelp logo

1779comp3005a3's Introduction

Antony Ren - 101151779 - COMP3005 A3

Demo video: https://mediaspace.carleton.ca/media/Antony+Ren+-+COMP3005+A3Q1+demo/1_pesnk0kl

Application type: Command line interface

Language: Java (Intellij IDEA)

How to run program:

  1. Set up the Students database in pgAdmin if not already

    a. Open the CREATE.sql file in Asmt3/src/sql, and run the query in pgAdmin

    b. Open the INSERT.sql file in Asmt3/src/sql, and run the query in pgAdmin

  2. Open the pom.xml file, in the Asmt3 folder, and ensure the dependencies for Postgresql are there (you may need to modify based on your version). If you're using Intellij IDEA, make sure you refresh Maven to ensure that it is connected to Postgresql database.

  3. Locate the Sql.java file, in Asmt3/src/main/java

  4. From lines 6-8, modify the user credentials based on your info for Postgresql

  5. Compile the program depending on what IDE you use (if you use Intellij IDEA, the program should be compiled automatically)

  6. Run the program

  7. Type a number to make a selection (1: getAllStudents(), 2: addStudent(), 3: updateStudentEmail(), 4: deleteStudent()) and follow the command-line prompts

  8. To quit program, type 'q' (at the 'Select an option' page)

Other notes:

  • In case the program can't run, if you're using Intellij IDEA, rebuild project (Build > Rebuild Project)
  • All source code was written in one Java file (Sql.java)
  • Program was created using MacBook Pro M1 Pro model

1779comp3005a3's People

Contributors

tonyren-card avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.