Git Product home page Git Product logo

class-planner's Introduction

Class Planner

Sample Preview For Class Planner Project

This project's aim is to streamline and automate the process that we use to sign up volunteers to attend class.

git clone https://github.com/AKaramifar/Class-Planner.git or if you use SSH (recommended):git clone [email protected]:AKaramifar/Class-Planner.git

[Installation and run backend]

  • create config.env file in config directory
  • ADD the following onto config.env you created before: NODE_ENV=development PORT=5000 MONGO_URI=your mongodb connection string
  • npm install
  • npm run server

Server will be running on http://localhost:5000

  • cd frontend
  • npm install
  • npm start

Client will be running on http://localhost:4000

  • cd frontend
  • npm install
  • cd ..
  • npm install
  • npm run dev

Server will be running on http://localhost:5000

Client will be running on http://localhost:3000

class-planner's People

Contributors

akaramifar avatar babakjahangiri avatar byohannes avatar chrisowen101 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

byohannes

class-planner's Issues

'Cancel' class attendance button not working

Hello. Myself and another TA tried cancelling our attendance to a class but it didn't work. The input form for the email popped up but then submitting it didn't do anything. This makes it difficult to know if someone has changed their mind. I'm on Linux Firefox. Thanks!

volunteer attend email bug

There is an issue when a volunteer try to sign up with a valid uppercase email, I have got a message saying email is not valid
email-bug

Regex Issue when Admin Add Syllabus URL

it must check for http:// or https:// at the first of URL and accept it or the software must detected the lack of protocol (http , https) or add it automatically .

display Error: ENOENT: no such file or directory ,it s not a bug

Error appear when run backend
Error: ENOENT: no such file or directory, stat '/Users/babak/Projects/CYF/Final Project/Class-Planner/frontend/build/index.html'

Server.js line 22 , wrong path

this setting should be for Heroku , but is it possible solve it in dev ?

if netlify.toml is work, is it necessary we keep this line ( server.js Line 22) ?

Improving security through authentication

Problem

Our current setup of this application includes hardcoded authentication on our front-end and no authentication on our back-end endpoints. This leaves our data open to public visibility, which contains personal information (Names and Email addresses).

In order to fix this, we should implement some level of security on API backend and an improved method of authentication on the front-end to ensure that the password for administration cannot be retrieved from the front-end, and that our api endpoints can't be hit without authentication.

Solution

The easiest implementation of a solution with the current setup of our APIs would be to introduce a JWT Token requirement for the backend authentication.

  1. Admin logs into the frontend
  2. If successful login, a JWT token is generated (expires in 15mins? TBC.)
  3. JWT token is passed as a parameter within requests (/:token/cities), to make minimals changes to the API.
  4. If JWT is invalid (or has expired), the request is blocked as forbidden, else the data is passed back to the client

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.