This is a stand-alone version of the Hyfer GitHub sync functionality.
- Create an empty test database, named
hyfer-sync
. - Grant the MySQL
hyfer
user full access to thehyfer-sync
database. - Source the new database from the SQL dump file from
sql
folder ofhyfer-backend
project. - Add the module definitions by sourcing the database with the SQL dump file from the
sql
folder in this project. - Change the column
full_name
of theusers
table to accepts NULLs. - Create a UNIQUE index for the column
username
of theusers
table. - Create a UNIQUE index for the column
group_name
of thegroups
table. - While in the project folder, install the node packages with the command
yarn
. - Copy the
.env-sample
to.env
and add your database credentials for thehyfer-sync
database. - Run the application by typing
yarn start
.
-
Rather than getting the GitHub team data directly from GitHub this test version get the GitHub team data from a local JSON file. The original data was obtained from GitHub using PostMan and saved as a JSON file.
-
For the class names in the database it has been chosen to make them the same as the team name in GitHub. The frontend can polish the names if desired.