Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ben-bromley/uon-comp-coursework-2

Repository for my Databases & Interfaces Coursework 2 Project
https://github.com/ben-bromley/uon-comp-coursework-2

css html javascript playwright supabase-js

Last synced: 26 days ago
JSON representation

Repository for my Databases & Interfaces Coursework 2 Project

Awesome Lists containing this project

README

        

# COMP1004 Coursework 2

A front-end interface that queries a supabase backend.

This project uses [http-server](https://www.npmjs.com/package/http-server) to run a local development server.
Playwright is configured to use the npm start script to automate running a dev server whilst testing.

Use `npm run start` to run the local server
Use `npm run test` to run all available playwright tests

Please note, you do not need to run the local server manually for the tests to work. The test is configured to run the start script before running tests.
However, if the local server is already running, it should automatically use it instead of trying to run another server on the same port (see [c7243b3](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/commit/c7243b3b27a9f1aa1f60d7a1422103b01c3c76ff))

## README Requirements

- Please do not make any further changes after the submission, otherwise it will be considered
as late submission (using the last commit date/time).
- A description of the additional work for HTML, CSS, JavaScript, and/or database. Please see the marking rubrics below for the details about additional work (to achieve full mark
for each criteria). Please describe separately for each aspect, i.e., HTML/CSS/JavaScript/database, what the additional work is, and where they are (file name and line number)

- Please say so in this document if you don't attempt any of these.
- Only the work described will be considered for mark.

## Criteria

### Criteria - HTML

| Requirement | Complete | Hash | Description |
| --------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1. There are at least three HTML pages, one for each database query/update. | ✅ | [0244b15](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/commit/0244b1591f2bf4034d1aaa63a3df8ba44092281a) | See below |
| 2. The files are named correctly. | ✅ | | `index.html` for the first page. Used for searching for people records in the system, `vehicles.html` - used for searching for vehicles in the system, and `new-vehicle.html` - used for submitting a new record for a vehicle and corresponding record if the owner is new to the system |
| 3. The page meta information includes language, character set, and title. | ✅ | [0244b15](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/blob/0244b1591f2bf4034d1aaa63a3df8ba44092281a/new-vehicle.html#L2-L8), [43dcfc6](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/blob/43dcfc69ffba97119ff383363cc5c704f65e0315/vehicles.html#L2-L8), [2fc586d](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/blob/2fc586d900807f11b5b12606829d44175c753e9a/index.html#L2-L7), [24743df](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/commit/24743df688ff9d2f72898a8b5d624c199269bdb2) | In the first three listed commits, I created these files with the `lang="en"` & `charset="UTF-8"` attributes, as well as a generic ``. In commit [24743df](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/commit/24743df688ff9d2f72898a8b5d624c199269bdb2) I've added more distinct, descriptive page titles |
| 4. The heading and text elements are used correctly. | ✅ | [dce47a9](https://github.com/Ben-Bromley/UON-COMP-Coursework-2/commit/dce47a952b080b4e9d53d08097b99e79bc6802ed) | Each page is given a unique heading, identifying the purpose of that page. |
| 5. An unordered list `