This is the code for COM3610 Dissertation Project, authored by Nikolay Lyubomirov and supervised by Professor Hamish Cunnigham.
The project is split between three separate folders, each being its separate node project.
In order to run the code correctly do the following for each of the folders:
- Copy and rename
config.example.jsontoconfig.jsonfrom theconfigfolder. - Change it to whatever settings you have on your machine.
- Run
npm installin the root directory of the API folder - Run in consecutive order:
This will create a test user and some sample data
npx sequelize db:migrate npx sequelize db:seed:all - Once 1-4 is complete, in the
/apidirectory runnpm run dev. This will start a local Express server on whatever port you have configured in theconfig.jsonfile. It will also start a WebSockets server, again based on the configuration.
- Run
npm install - Run
npm run dev. This will start a local Next.JS server on port 3000. If the port is in use, any processes can be killed with the following commandkill -9 (lsof -t -i tcp:3000), asuming a UNIX based system is used.
- In order for the tests to run correctly, the database must be migrated and seeded by following the steps outlined in the API section.
- Run
npm installinside the/testsfolder - From inside the
/testsfolder, runnpm start - Use the GUI to run different integration tests.