Skip to content

skillify-ca/skillify-web

Repository files navigation

Skillify

How to install

  1. Give Vithushan your github username so he can invite you to the react repo and then clone the skillify-web repo to your desktop.

  2. Open a new external terminal. Type Command + SHIFT + P on Mac and Control + SHIFT + P on windows from inside VSCODE.

  3. Next, you want to install Node.js, Download the correct version for your operating system(Windows,Mac,Linux). Download the MSI version at https://nodejs.org/en/download/. Now open the installer and make sure the installation has finished. In your terminal window, type the following: node -v . If some sort of version shows up such as(v16.15.1) or something similar, it has installed.

  4. Now on VSCODE, create a file called .env.local. Ask Vithushan what needs to go in this file.

  5. Now, make sure you are in the Skillify Folder. On windows, type cd and on mac type pwd in your terminal. It will tell you what folder you are in right now. Make sure you know where the Skillify folder is saved on your device. If you are in the Skillify folder, the terminal window will display something that ends with skillify-web after you type cd or pwd. If you are not in that directory, you want to get into it. Lets say the Skillify file on your computer is located here: C:\Users\sutha\OneDrive\Documents\GitHub\skillify-web. You want to type cd/pwd User, then cd/pwd sutha and so on until you type cd/pwd skillify-web. Then you are in the correct directory !

  6. Now type npm install in the terminal window. If a lot of NPM ERR! show up in red, type npm install --legacy-peer-deps. It would be installing properly if at the bottom, there are no NPM ERR!’s showing up. The installation is complete when you are able to type again into the terminal and the cursor will reappear.

  7. Now, you want to type the following into your terminal: npm run dev. After it has installed. It may say (started a server at…) Go onto your browser and open http://localhost:3000/. If the skillify website shows up, you're good. If not, go to your terminal, press control/command c. After that, rerun npm run dev in the terminal. The skillify website should now show up.

  8. Try going into VSCODE and locating the Hero.tsx file. Try removing and changing the code. If you go on the site, it should look different according to the changes you made. If that works, you are good !

Storybook

Math Champ has a library of UI components that make up the website. They're categorized as a generic UI component or a question type component. To see the component library run this command in your Terminal:

npm run storybook

How to add a new skill

Math Champ is continuously adding more skills and questions types. If you want to create a new skill you must follow these steps:

  • Copy this PR #297
  • Insert a new row in the user_skills table in Hasura for all users with this new skill
  • Update the user sync method with your new skill so new users will get the skill initialized

Units

  • grades vs unit vs skill
  • react components
  • show a demo question type
  • graphQL queries/mutations
  • hasura
  • Different stages of the assessment (INPUT, TEST, CONCLUSIONS)
  • adaptive difficulty
  • practice tracker
  • how the question generator
  • Software testing

Important libraries that we use