Code Monkey home page Code Monkey logo

pupil-server's People

Contributors

cgm616 avatar

Watchers

 avatar

pupil-server's Issues

Finish dashboard

Lots of functionality is needed for this. This is the main page of the app.

Tutors

  • accept jobs
  • see list of upcoming jobs
  • manage possible subjects
  • access tutoring advice
  • ability to respond to past jobs

Students

  • create new tutoring sessions
  • respond to past sessions

All of these are still in flux!

Refactor error.rs error struct

Right new it has a bunch of types that are very specific. These could probably be changed to something like:

pub enum ThresholdField {
    User,
    Pass,
    Name,
    Email,
}

pub enum FieldIssue {
    Taken,
    TooShort,
    NotValid,
}

pub enum Error {
    FieldError(ThresholdField, FieldIssue),
    ...
}

Set up Mailchimp integration

We need to somehow ask users to confirm their emails to activate their accounts. At the same time, we want to be able to send emails periodically to people, and when we need to confirm new tutoring sessions.

"Available Appointments" Tab - Tutor

Base component (Bulma): Panel
Links to : appointment database and filters it
Add to details by editing this comment
will filter by subject, date.
panel will parse database to only show appointments that are available

Add rate-limiting based on username and ip

These are definite security improvements, to prevent an attacker from quickly trying many passwords. This is already partially implemented through the use of a time-intensive hashing function, but it could be improved with various other techniques other than making our server crunch numbers in the meantime.

Make server wait a random amount of time when username is bad to mimic password being bad

When logging in, if the username is not in the database the response will come back almost immediately, because the database call takes relatively less time than hashing a password to see if it is correct. Therefore, an attacker can mine our database for usernames by testing to see what combinations of login usernames go fast compared to waiting for hashing.

To prevent this, the server should wait a random-but-plausable amount of time after deciding that a username is bad before sending a response.

"Profile" Tab - Student & Tutor

Base component (Bulma) : Menu
Links to : profile database, public profile. Secure transaction history
Add to details by editing this comment
Will show transactions and payments
profile with about section, education, etc.

Finish index page

Index (greeting page for new users) needs to be finished before launch. It should have information concerning what Pupil is and how it works, as well as the mission and how to get started.

Add testing of all routes and database calls

This needs to be done in Travis. Some sort of expected response from the db must be used. In addition, a travis.env file should be used.

Right now, almost none of the app is tested.

Port index html to Elm

This not only moves everything important about index into the same file, it also allows scrolling with links and other parts of the page to be implemented.

On successful registration send a successful error code rather than a BadRequest

This makes MUCH more semantic sense. This would include changing the frontend app to parse JSON responses from the server while paying attention to different fields.

As an example, this:
{ "redirect":"dash" }
would redirect the website to the dashboard page while something like this:
{ "msg":"You are successfully registered." }
would show the message to the user.

"Scheduled Appointments" Tab - Student & Tutor

Base component (Bulma) : List with Panel?
Links to : appointment database, will only show appoints that contain/are linked to user
Add to details by editing this comment
Sort able by date, subject.

Remove dependency on deprecated rustc_serialize

The jwt crate we use requires rustc_serialize, while Rocket requires serde. The new version of this crate has switched to serde, and so that crate needs to be updated to remove this extra dependency.

Create proper response for each possible error

Server errors should redirect to an error page. Confirmation errors on requests should redirect too. Login and registration errors should return a json encoded string (maybe in a struct) to display to the user in the info box. Bad cookie errors should redirect to the homepage with a logout notice, or something like that.

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.