TA Feedback System
npm install
In development mode, code is compiled and run on localhost port 3000.
npm start
Note: This starts a php server on port 3000.
Login to database via Mariadb
Once logged on, do the following to create your local database and user to allow access via php:
Creating the database and import the schema:
MariaDB[(none)]> source "/absolute/path/to/.../db/schema.sql"
User Setup:
MariaDB[ta_feedback]> CREATE USER 'myuser' IDENTIFIED BY 'mypassword';
MariaDB[ta_feedback]> GRANT USAGE ON ta_feedback.* TO 'myuser'@localhost IDENTIFIED BY 'mypassword';
MariaDB[(none)]> FLUSH PRIVILEGES;
All .vue and .php files must be run through prettier before submitting any PRs.
To install prettier with php plugin:
npm install -g prettier@1.12.1 prettier/plugin-php
To run prettier on files:
prettier --write --tab-width 4 --no-config file_name
To run tests, execute
$ npm test