Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started