Skip to content

Latest commit

 

History

History
96 lines (69 loc) · 2.11 KB

File metadata and controls

96 lines (69 loc) · 2.11 KB

SDProctor

A Exam proctoring website bootstrapped with Create React App.

Table of contents

Overview

The challenge

Users should be able to:

  • Create an account and face capture
  • Login and face validation
  • Take exams
  • Be monitored via camera when taking the exams (proctoring)
  • Ensure that no one is impersonating
  • Navigate to the cart page

Screenshot

Links

My process

Built with

What I learned

  • React Authentication and Authorization
  • Consuming backend and ML APIs
useEffect(() => {
    const setupCamera = async () => {
      const video = videoRef.current;

      try {
        const stream = await navigator.mediaDevices.getUserMedia({ video: true });
        video.srcObject = stream;
      } catch (error) {
        console.error('Error accessing camera:', error);
      }
    };

    setupCamera();
  }, []);
  const offset = currentPage * n;
  const paginatedData = questions.slice(offset, offset + n);

  const navigate = useNavigate()

  function logout () {
    localStorage.clear()
    navigate('/')
  }

Useful resources

In the project directory, you can run:

npm install

then...

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.