GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - orthly/cad-full-stack-interview-react

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
server
server
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

Prepare the environment

Clone the Github repository

Clone the repo: https://github.com/orthly/cad-full-stack-interview-react

Open the repository using your favourite IDE.

You can use your development setup including LSPs, just turn off AI code completion (e.g. copilot, codium, tabnine, …)

Walk us through your thinking process and explain what and why you are doing.

Install the dependencies

Install the dependencies defined in the package.json file at the root of the project.

Start the app

If you are on Mac, use the dev script defined in package.json to start both server and client. If you are on Windows, you need to run npm run dev:server in one terminal and npm run dev:client in another, to start both server and client at the same time.

View the app

Navigate to http://localhost:3000

Interview steps

Introduction

We want to make an HTTP request to an endpoint (http://localhost:4000/api) and get the data necessary to build a THREE.Mesh.

We will then build an interactive UI to position the Mesh on top of a table.

Knowledge of Three.js is not required. You are free to read Three.js docs (https://threejs.org/docs/), or ask your interviewer for guidance.

Step 1

Fetch the data from the endpoint. The response will be a serialized THREE.Mesh.

The endpoint is protected, and you should use the provided Bearer authorization token to authenticate the request.

Step 2

Once you get the response from the endpoint, build the mesh using the provided useLoader component, which returns a React.RefObject<THREE.ObjectLoader>. Here (https://threejs.org/docs/#ObjectLoader) you can read the documentation for ObjectLoader.

Step 3

Add the mesh to the scene.

The scene is provided by the useScene component, which returns a React.RefObject<THREE.Scene>.

Step 4

The mesh that you'll receive is either a bunny or a teapot, rotated on its side, positioned near the origin.

Move the object in order for it to face upwards, and rest perfectly centered on top of the table.

Here's THREE documentation for:

  • Box3: https://threejs.org/docs/#Box3
  • Vector3: https://threejs.org/docs/#Vector3
  • Matrix4: https://threejs.org/docs/#Matrix4
  • Quaternion: https://threejs.org/docs/#Quaternion
  • Euler: https://threejs.org/docs/#Euler

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.