Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Releases: ShinzenATT/DAT076-project

DAT076 Completion

14 Mar 19:07
Compare
Choose a tag to compare

Here are the per-compiled code bases for the project. Currently there are no configuration files setup so the client will always check localhost:8080 and server will connect to database on localhost:5432 with user postgres.

Runnning Server

First a PostgreSQL databse needs to be setup with the database-schemas.sql which can be done with the following command:

psql -f database-schemas.sql

Afterwards unzip the server zip and enter the extracted directory. To run the server use the following command:

node .

Consider reading the API specification to understand how to use the HTTP API, it can also be accessed in the /spec url when hosting the API.

Running Client

The files can be used with hosting tools such as Apache2 and Nginx out of the box. However if you wish to host and view locally then first unzip and enter the directory. Then use the following command:

npx vite preview --outDir ./

Then the website can be accessed trough http://localhost:4173/.