Surveyor is a system to facilitate gathering feedback from customers in airport lounges.
- Docker Desktop: https://www.docker.com/products/docker-desktop/
- PostgreSQL Command Line Tools (Available in the PostgreSQL installer): https://www.postgresql.org/download/
- Java 17: https://adoptium.net/en-GB/temurin/releases/
- Node.js 21: https://nodejs.org/en
When running the PostgreSQL installer, ensure that you untick 'PostgreSQL Server' to prevent clashes with docker later on. Furthermore, ensure the 'bin' folder in the newly installed PostgreSQL directory is added to your PATH environment variable.
Ensure the prerequisites have been installed on your machine before proceeding.
To set up the database, open a terminal in this directory and run the following commands:
cd database
docker-compose up -d
pg_restore -d exeterairways -U exeter -h localhost exeterairwaysdb.bak # Password: exeterThis will create a PostgreSQL database instance and restore it from the backup file provided. Upon connecting, you should find all of the database tables with some prepopulated data.
Build the Surveyor backend API server.
cd surveyor-backend
./gradlew buildInstall dependencies and start the Surveyor frontend web application.
cd surveyor-ui
npm install
npm run devOpen http://localhost:3000 with your browser to see the running application.