Hyfer is a Code School platform for students and teachers.
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
sqlfolder into the database:mysql -uuser-name-pdatabase-name<sql-file -
Next, repeat this command to load the sample data SQL file from the
sqlfolder into the database. -
create a
.envfile in thehyfer-backendfolder, paste the contents of the.env.samplefile into it, and modify to reflect your specific database configuration.
Install dependencies using:
yarn installYou can run tests using:
yarn testyarn startCertain 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.