Skip to content

A program to help you find your preferred role in a team, created for my apprenticeship (as part of Knowledge Module 2)

Notifications You must be signed in to change notification settings

Kerenhb/Questionaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KM2

A program to help you find your preferred role in a team, created for my apprenticeship. The program is based of a questionnaire from Stellar Leadership (http://stellarleadership.com/).

NOTE the Program isn't complete, but is in a usable state, although it does require running the mySQL database locally.

Scripts

Start

Start both the client and the server with 'npm start'. 'npm run client' and 'npm run server' start the server and client separately if needed. Note: 'npm run dev' won't work.

Test

Test both the client and the server with 'npm test'. 'npm run client:test' and 'npm run server:test' test the server and client separately if needed.

Client

Created with the help of create-react-app. Note that after logging in you need to select the Questionnaire again, as there is a async check happening and you can't access the Questionaire unless your logged in.

Server

A node based back-end with the following routes (to be updated with as per API documentation periodically):

  • [POST] /user/test: Saves users latest test scores
  • [POST] /login: Enables users to login using passport.js
  • [GET] /verify: Lets you know if the user is currently logged in and if so, who they are

Database

A mySQL database with the following tables and data:

  • Users

    • ID: TinyInt, Primary Key (auto increment)
    • Role: VarChar(10), NOT NULL
    • Username: VarChar(255), Not Null
    • Password: VarChar(255), Not Null
    • Name: : VarChar(255)
    • Organisation: VarChar(255)
  • Tests

    • ID: TinyInt, Primary Key (auto increment)
    • UserID: Foreign Key (Users)
    • IM: TinyInt(100), Unsigned, Not Null
    • CO: TinyInt(100), Unsigned, Not Null
    • SH: TinyInt(100), Unsigned, Not Null
    • PL: TinyInt(100), Unsigned, Not Null
    • RI: TinyInt(100), Unsigned, Not Null
    • ME: TinyInt(100), Unsigned, Not Null
    • TW: TinyInt(100), Unsigned, Not Null
    • CF: TinyInt(100), Unsigned, Not Null

Documentation

About

A program to help you find your preferred role in a team, created for my apprenticeship (as part of Knowledge Module 2)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published