Skip to content

richardzeng1/tafs

 
 

Repository files navigation

Build Status

tafs

TA Feedback System

Initial Set Up

npm install

Compiling and Running Dev Server

In development mode, code is compiled and run on localhost port 3000.

npm start

Note: This starts a php server on port 3000.

Database Setup

Login to database via Mariadb

Once logged on, do the following to create your local database and user to allow access via php:

Database Setup

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;

Prettier Tests

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

Mocha testing

To run tests, execute

$ npm test

About

TA Feedback System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 39.8%
  • Vue 29.4%
  • JavaScript 21.7%
  • Python 8.7%
  • Shell 0.2%
  • HTML 0.1%
  • CSS 0.1%