Install MySQL
To initialize the database:
- Switch into the
databasedirectory. - Start an admin MySQL shell with the
--local-infile=1flag. - Execute
source create.sqlto create the database and tables. - Execute
set global local_infile=1;to enable loading data from files. - Execute
source load.sqlto load the data into the tables. - Create an account with permissions to SELECT, INSERT, UPDATE, and DELETE.
- Exit the shell, and switch into the
backenddirectory. - Rename the
.env.templatefile to.env, and fill the appropriate fields with the account info.
Install Node.js (https://nodejs.org/en/download)
To install dependencies for the project:
- Switch into the
uidirectory and executenpm install - Switch into the
backenddirectory and executenpm install
Build the frontend:
- Switch into the
uidirectory - Execute
npm run build
Start the server:
- Switch into the
backenddirectory - Execute
npm start