Coder Social home page Coder Social logo

story-squad-fe-archived's Introduction

Story Squad

You can find the deployed project at AWS Amplify.

Project Overview

Trello Board

Product Canvas

Ux Design by Lauren Chandler

UX Redesign by Erica Thacker

Welcome to Story Squad! We are an interactive learning platform targeted at grade school children, and we help build reading comprehension as well as artistic, writing, and analytical/critical thinking skills through weekly competitions.

Each week features a new chapter in an exciting novel, written and serialized specifically for Story Squad by author and educator Graig Peterson. Children are provided with prompts based on the chapter they've just read, and participants are then divided into teams of two. Students create art and fanfiction to match the prompt, before going head to head in a bracket-style tournament.

In addition to growing their literary and artistic skills, students learn team building and critical thinking skills through a unique voting system, where each child must weight their own work against their teammate in order to increase their odds of winning. Badges and points incentivize winning and encourage participation.

Story Squad is a paid service; parents are required to create the account for their children and pay a monthly subscription fee in order for their children to compete. This brings the platform into compliance with COPPA and ensures a long future for the project.

Key Features

  • A Custom, Serialized Novel geared toward children in 3rd-6th grade
  • Parental Controls which allow parents to add and customize child accounts
  • Secure Payment Handling via Stripe

Tech Stack

Front end built using

React

  • First Class Performance with Virtual DOM
  • Lightweight Library resulting in low bundle size/improved load times
  • Easy cross-platform development via progressive web app
  • Simple routing

Typescript

  • VS Code Tooling (Autocomplete/Tooltips)
  • Excellent error catching

Material UI

  • Clean, modern components out of the box
  • Easy to fine-tune per UX designs

React Stripe Elements

  • Includes stripe input building blocks
  • Manages Stripe prop injection

React-PDF

  • Displays PDF pages as canvases with a text layer

Front end deployed to Netlify

Back end built using

Express

  • Built in routing and middleware
  • Useful add-ons such as helmet and CORS
  • Well documented

TypeORM

  • Simple database creation, connections, queries, etc
  • Plays well with Typescript
  • Libraries simplify seeding

APIs

JWT & BCrypt

JSON Web Tokens are an industry standard authentication solution. Paired with BCrypt for hashing passwords, this allows secure local password authentication without reliance on third party solutions.

Stripe

Stripe is a RESTful API which "has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs." It was chosen for this project because of Stripe's reliability and trustworthiness in the world of online transactions, as well as the way in which the API allows us to bypass storing sensative information.

Environment Variables

In order for the app to function correctly, the user must set up their own environment variables. There should be a .env file containing the following:

*  BROWSER=none
*  REACT_APP_ENDPOINT=http://localhost:4000

Content Licenses

Image Filename Source / Creator License
Material Icon Google Apache License 2.0

Testing

Jest

  • Simple testing
  • Mocking of dependencies
  • Promotes consistent unit testing

React Testing Library

  • Rendering React Components
  • Fire Events like onClick for testing user interactions

Installation Instructions

Clone repo

git clone [email protected]:Lambda-School-Labs/story-squad-fe.git
cd story-squad-fe

Install dependencies

yarn install

Run test

yarn test

Clone and download the back end
Follow back end setup guide

Run the application locally

yarn dev

Other Scripts

* build - creates a build of the application
* dev - runs the development server
* test - runs tests as defined in *.spec.ts files
* lint - format and correct errors with prettier

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct. Please follow it in all your interactions with the project.

Issue/Bug Request

If you are having an issue with the existing project code, please submit a bug report under the following guidelines:

  • Check first to see if your issue has already been reported.
  • Check to see if the issue has recently been fixed by attempting to reproduce the issue using the latest master branch in the repository.
  • Create a live example of the problem.
  • Submit a detailed bug report including your environment & browser, steps to reproduce the issue, actual and expected outcomes, where you believe the issue is originating from, and any potential solutions you have considered.

Feature Requests

We would love to hear from you about new features which would improve this app and further the aims of our project. Please provide as much detail and information as possible to show us why you think your new feature should be implemented.

Pull Requests

If you have developed a patch, bug fix, or new feature that would improve this app, please submit a pull request. It is best to communicate your ideas with the developers first before investing a great deal of time into a pull request to ensure that it will mesh smoothly with the project.

Remember that this project is licensed under the MIT license, and by submitting a pull request, you agree that your work will be, too.

Pull Request Guidelines

  • Ensure any install or build dependencies are removed before the end of the layer when doing a build.
  • Update the README.md with details of changes to the interface, including new plist variables, exposed ports, useful file locations and container parameters.
  • Ensure that your code conforms to our existing code conventions and test coverage.
  • Include the relevant issue number, if applicable.
  • You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.

Attribution

These contribution guidelines have been adapted from this good-Contributing.md-template.

Documentation

See Backend Documentation for details on the backend of our project.

Known issues at the end of Labs24 6/24/20

  • Vote Button on Frame 38 After the voting time is over, a button saying "vote" is still present at the last page. It should either be removed or replaced with a button that returns the player to the main menu

  • Duplicate points on voting frame When the point allocation time is over, kids will see two intances of the point value for each versus block. There should be only one. https://github.com/Lambda-School-Labs/story-squad-fe/blob/master/src/app/components/versus/versus.component.tsx

  • Incomplete features on the moderator page - The "Children" "Flagged" and "Status" columns in the moderator dashboard have no functionality. They should display the number of children, whether or not a cohort has flagged stories for the current week, and whether or not the stories/illustrations have been viewed, respectively.

  • Styling for moderator page - The moderator view for stories and illustrations could use some styling work, as stories with large amount of profanity will show an overlap between the possible words display and the transcribed text.

Contributors

Lauren Chandler Eric Banker Forrest Darabian Shruti Malik Brittany Moyers William Sedlacek

Erica Thacker Tim Griffith Mashima Button XuHui Zhu Joshua Gray Allie Robinson

Jasmine Terry Kai Haskell Nic Young Young Won


Cameron Moore Chance Rutledge Logan Van Hook Robert Carsten Leo Sanchez

MIT React Typescript code style: prettier

story-squad-fe-archived's People

Contributors

allie-rae avatar andrewmaddocks avatar b-griffinn avatar bnmoyers avatar camjmoore avatar crutledgedev avatar dani-digital avatar deusexmashima avatar ericbanker12 avatar evrgreen avatar forrestdarabian avatar grifmang avatar itshui3 avatar jgpico avatar kaihaskell avatar leosanchez89 avatar lgv-0 avatar nwkendall avatar squashgray avatar tatek1993 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

story-squad-fe-archived's Issues

Forbidden non-null assertion

./src/app/components/child-dashboard/team-join/team-join.component.tsx
Loc 268:13 : Forbidden non-null assertion @typescript-eslint/no-non-null-assertion

./src/app/components/child-dashboard/child-home/child-home.component.tsx
Loc 282:13 : Forbidden non-null assertion @typescript-eslint/no-non-null-assertion

./src/app/components/child-dashboard/kid-progress/kid-progress.component.tsx
Loc 297:13 : Forbidden non-null assertion @typescript-eslint/no-non-null-assertion

Doesn't break the app FE, but needs fixing for good practice

Safari Support

There is currently an issue with child submission form in file numbering when using Safari.

Missing teammate case is not functioning as intended

If matchup is generated and you have a missing team-member. "Your Team Will be Matched Soon" renders instead of "Team Up".

The expected behavior is that you can still visit the point allocation screen, but instead of allocating points between your teammate and your own submissions, you only allocate for your own and the points are doubled.

A foreseeable issue is that the current 10 point limitation logic will need adjustment to account for the case of someone not having a teammate with submissions to give the minimum 10.

Admin Temporary Token has Full Access

Currently, the admin token expires after one day, but has full admin rights. This token is not encrypted and is included in the url; this creates a security issue for 24 hrs after the token is created.

Proposed solution: limit the token's access to creating a password if one doesn't already exist.

Netlify Build Time

Netlify only offers 300m of build time per month.
Ours is currently up to 298m.
No further builds can be completed until February 20th without incurring charges.

Remove 'Welcome Back'

Change 'Welcome Back' greeting on card.component.tsx to something that will also cover first time users, per user research.

Remove babel-eslint in package.json

Remove "babel-eslint": "^10.1.0", from package.json to remove FE error on start.

The error is caused by babel-eslint being installed through devDependencies. It gets installed automatically as a dependency to react-scripts. So, if it gets installed as a devDependency as well, it will conflict.

Multiple Page Submissions on Match Up Page

  • what if a child submits multiple pages?
    It would be ideal to only show page1 in the modal on the match up page and when a user clicks on the modal you can carousel / see all pages submitted.
  • The modals on the match up page may need to accept an array that allows us to map through the entire list of submissions and display accordingly in the modal.

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.