GithubHelp home page GithubHelp logo

classact's Introduction

ClassAct

Backend

The backend requires python 3.6 or higher to run. You can install the required packages by running:

pip install -r requirements.txt 

"pip" will have to be changed to "pip3" in the command if you have multiple versions of python on your computer. The requirements.txt file specifies the required packages for this project.

Next, apply the migrations (which actually creates the database)

cd backend  
python manage.py migrate

Then start the server on localhost 8000

python manage.py runserver

You can view the current api endpoints at localhost:8000/api/schema

Frontend

The front requires Node.js (https://nodejs.org/en/download/) to run. It uses npm to install all the necessary packages for the project, including React.

cd frontend  
npm install

You can then run the frontend on localhost:3000

npm start

classact's People

Contributors

dereklh4 avatar dramadas avatar ewchristians avatar jdmills333 avatar jmiller44 avatar slarson22 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

classact's Issues

Edit feature doesn't work consistently

Description

When editing an answer sometimes answers cannot be appended, only overwritten. When editing other answers, text from a different answer will appear instead. Most often, editing answer will just overwrite the old one.

Severity

High

Comments

The edit feature doesn’t work consistently or at all.

URL vs ClassID

Description

When joining a classroom, it asks for a “ClassID,” but there’s no information on where to find this ClassID.The “URL” property of the chatroom seems to be the ClassID. Should specify this for clear usage.

Would enhance UI

Severity

Low

Can log in on different browsers under same account

Description

I can access my account at the same time on different browsers. May have some security issues if a student shares their login info with admin access. Could be intended behavior, depends on implementation

Severity

Low

Password feedback on signup page

Description

The responses to various password inputs aren’t detailed enough. Had to try many passwords that weren’t accepted but had no feedback on what was wrong other than “password is too common”

Some sort of feedback about what is expected for a password could be given in advance. Potentially add more detail after an invalid password is provided but that doesn’t need to be a priority.

Severity

Low

Students can delete responses

Description

As a student, you can delete other students responses.

Severity

Medium

Comments

Feature could (and probably would) be abused by students

Python manage.py migrate

Description

Syntax error:

File "manage.py", line 14
) from exc
^
SyntaxError: invalid syntax

Severity

Medium, program can’t run at all but may be different for different users

Comments

Similar to above, if python2 and 3 are on your computer, you need to specify “python3 manage.py migrate.”

Using a virtual environment would help a lot, as you can pip install all the requirements in the virtual environment so that it can run the same on any computer.

User behavior doesn’t change when switching from student chatroom to creator chatroom

Description

When the user is in a chatroom where they are a student, they cannot pin questions, however if the user then switches to a chatroom where they are a creator, they still cannot pin questions. The user behavior does not switch from student to creator when switching chat-rooms with the sidebar.

Severity

Medium

Comments

This isn’t a serious bug since behavior returns to normal if the user enters a chatroom from the homepage.

Page prints “Hello world” when npm start

Description

If you don’t have http://localhost:3000 in a tab already open (so close all browser windows) and run “npm start,” for a brief second before the sign in page appears, “hello world” is printed out on the top left corner.

Only occurs when the tab isn’t open in advance so this issue isn’t critical, but might be an easy fix.

Severity

Low

Changing chatroom names

Description

When changing chatroom names, it will update “enter: chatroomname” upon refresh, but without refresh, chatroom name on the top and bottom are different (bottom on isn’t updated)

Severity

Low

Endorsing an answer

Description

When endorsing a response as a creator, the “endorse” button disappears after clicking it once.

Severity

Medium

Long text answers aren’t formatted correctly

Description

Long strings of unbroken text posted as answers continue off of the page and don’t wrap around with a new line.

Only answers posted with spaces and newlines are properly displayed. Long strings of text just continue as one unbroken line

Severity

Low

No back button after resetting password

Description

When attempting a password reset, there’s no button on the page to go back to the sign in or sign up page.

Severity

Medium (password reset not fully implemented yet, so this may not be an issue)

Comments

Unsure where you guys with this section of the project, but just wanted to let you know about it in case you missed it.

Joining a chat-room that you created

Description

When you try to join an existing chat-room that you created using the ClassID, it causes the page to crash with a TypeError.

Severity

High

Comments

While this isn’t normal behavior from a user, this issue causes a full site crash that transitions into a debug phase.

Note: this bug occured on one of our computers but did not show up on others. We’re not entirely sure what differentiates whether it occurs or not but just note that it is possible for it to occur.

Deleting a chatroom and then joining with its URL brings the chat room back

Description

A chatroom can be deleted but if the URL is copied before and the user attempts to join the chatroom after it was deleted, the chatroom is recreated. If the user was the one who created the chatroom, they are then added as a user.

Severity

Medium

Comments

Chat-rooms probably aren’t deleted properly.

Unable to unpin pinned questions

Description

Once pin has been placed, there is no option to unpin it and it is pinned forever

Severity

Low

Comments

Hopefully a simple remove feature can be made to undo pin placement

New chats can be made with empty chat name

Description

Using a space or a tab as a classname does not cause an error. This isn’t a very serious bug but it might cause confusion if chatroom names can be empty

Severity

Low

Pip install -r requirements.txt

Description

If python2 and 3 are on your computer, you need to specify “Pip3 install -r requirements.txt” rather than “pip install -r requirements.txt” Otherwise, Django==2.1.2 won’t be able to be installed.

Running the backend on a virtual environment would be very beneficial, so anyone’s computer can run the program without conflict.

Severity

Medium

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.