- Ensure Node is installed (to verify, run
npm -v
in Terminal) - Run the client environment
cd
into/client
.- Run
npm install
in Terminal. This installs current existing dependencies. - Run
npm run dev
. - Open the URL provided in the terminal (e.g.,
http://localhost:5173/
)
- Run the server environment
cd
into/server
.- Run
npm run dev
.
Postman API is a helpful tool to test API development by allowing us to create and run mock API calls to our server, as well as observe the responses.
- Create an account on
https://www.postman.com/
. - Open up a workspace.
- In the
Collections
tab (left-hand side), press the+
button to create a new blank collection. - In your collection, open the
Variables
tab.- You can define variables to include in your requests (e.g., set
url
tohttp://localhost:3000
)
- You can define variables to include in your requests (e.g., set
- Create a
New Request
.- In the field
Enter URL or paste text
, enter the base URL with the endpoint you want to test- e.g.,
{{url}}/login
- e.g.,
- Include any query parameters in the list below the text field.
- In the field
- Press
Send
, located top-right.- The response is displayed at the bottom tab of the window.