moesi88 / hyfer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hyfer

Hyfer is a Code School platform for students and teachers.

Installation

Database

This application requires a MySQL database.

  • Create an empty database and a MySQL user with rights to the database.

  • Use the command line to load the most recent version of the schema SQL file from the sql folder into the database:

    mysql -u user-name -p database-name < sql-file

  • Next, repeat this command to load the sample data SQL file from the sql folder into the database.

  • create a config.js file in the server/config folder, paste the contents of the config.sample.js file into it, and modify to reflect your specific database configuration. you need to Register a new OAuth application in your GitHub developer settings. set the Homepage URL to http://localhost:3005 and callback URL to http://localhost:3005/auth/github/callback.

Installing dependencies

Install dependencies using:

yarn install

Running tests

You can run tests using:

yarn test

start the app

yarn start

Admin functions

Certain admin tasks require a teacher role. To initially give yourself this role you need to sign-in with GitHUb and then use the my-sql command line or the MySQL Workbench to change your role in the users table from guest to teacher.

About


Languages

Language:JavaScript 85.1%Language:CSS 14.5%Language:HTML 0.4%