Welcome
Welcome to a brief overview of the CPSC 304 sample project. This guide offers insights into creating your own project from scratch or building upon the provided samples. Through this, you'll gain a deeper understanding of how to construct an application that interfaces with a relational database.
Before we start, let's ensure we're all on the same page with some basic concepts:
Just like code, these queries must be executed to take effect.
To ensure that you're working with the same set of data throughout your project, you have two options:
- Use the same username and password credentials to access the same database space consistently.
- Run the same reset SQL script among your group to repeat the (drop-create-insert) process and ensure everyone is working with identical data.
For example, consider an online shopping website. When you browse products, view images, and hover over buttons, you are interacting with the frontend, which runs on your device (the client). Once the final place-the-order button has been clicked, your device sends a request to the server. The server, which houses the backend, then checks inventory from their database, processes payment, and updates the database with your order details. Once these operations are completed, the server sends a response back to the client. Your device (the client) then displays this information on the frontend, possibly showing you a thank-you message. In this scenario, the frontend provides the user experience, while the backend ensures the operations are executed correctly, and the client-server model facilitates the communication between your device and the online shopping website's infrastructure.
Choice of IDE
We recommend using Visual Studio Code as it makes it easier to develop on the remote undergraduate CS servers. However, it tends to create relic files that can lead to exceeding your account's size quota. Visual Studio Code installs SSH server files on your remote account disk, which may cause the disk to run out of space. If you encounter an error such as not enough space in the command line, you will need to free up disk space following this guide.