Question: Your assignment is to: Create a new folder on your computer called express - react Open that folder in VS Code Create a new folder
Your assignment is to:
Create a new folder on your computer called expressreact
Open that folder in VS Code
Create a new folder inside called server
Your assignment will be to create an express server just like we did in class.Your server should:
Run on port
Return the message "Server is operational" if a client makes a get request to the route test
Should return an image as a static asset
Should return the index.html of a react build of your choice as the root route
You could copy an existing project in to your expressreact folder or launch a new one in the terminal w vite
Run the vite build command to create your dist folder
Add the dist folder as a static path and return it in your get request
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
