-
Navigate to the server directory:
cd server -
Install server dependencies:
npm install
-
Start the server:
node index.js
The server will be running on
http://localhost:8000/api/users.
-
Navigate to the client directory:
cd client -
Install client dependencies:
npm install
-
Start the React app:
npm start
The React app will be accessible at
http://localhost:3000.
server: Express server that serves user data.client: React app that fetches and displays user data.
- Make sure the server is running before starting the client.
- The server runs on port 8000, and the client runs on port 3000 by default.
Feel free to explore and modify the code to suit your needs!