Coder Social home page Coder Social logo

frontend-pem's Introduction

Personality Emotion Mapping (PEM) Model

React.js project designed as part of an online platform that enables students to participate in multi-modal surveys.

This is written in JavaScript with Firebase used for much of the backend functionality including data storage, authentication, and hosting. To view the live version, see https://academicsurvey.ie/

Currently running on

  • React v16.12.0
  • Firebase v7.8.1

Helpful Guides:

Building

There are a number of IDEs that you can choose from but I'd highly recommend Visual Studio Code. It's widely used, well-documented, and has a large selection of useful plugins and tools.

To run this locally, simply use the command npm start. This should start the project and open it in your default web browser on http://localhost:3000/

In order to build and deploy the web app, you need to first run npm run build. After this, you can run firebase deploy and this should create a new deployment once your environment is set up correctly. Please see the documentation on React Deployments and Firebase Hosting for an in-depth guide.

Goal-Setting Group Assignment & Redirect

As of the time of writing (May 2022), all new sign-ups are assigned to either the goal-setting or control group. This will have no affect on any studies currently. It will not interfere or limit which studies can be carried out unless you change code to make it do so.

This was done to allow automatic group assignment to be carried out and to redirect participants to the correct quiz based on their group. To enable this redirect, see fetchGroup() and the commented out code in render() in HomeContent.js. Make sure to change the routes in fetchGroup() to match the new URLs for the studies which you intend on redirect the participants to.

Recording Participants' Webcams

A previous study required the use of participants' webcams for the duration of the study. This was not required in all situations so it was disabled. If you wish to re-enable it, there are a number of commented out sections of code in BlockContent.js, GroupContent.js and QuizContent.js.

Important

Please make sure to thoroughly test out any surveys/quizzes that you make before sending them out. There have been a number of issues that have previously popped up when testing that may have never been noticed. These might be small or else they may end up breaking an entire section of your study.

frontend-pem's People

Contributors

rdoreilly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.