Answered step by step
Verified Expert Solution
Link Copied!

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 express-react
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 3000
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 express-react 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions