-
Install Dependencies:
npm install
or
yarn install
-
Start the Server:
npm start
or
node server.js
-
Confirm Server is Running:
Server is running on port 3000
This indicates that your server is running on port 3000.
The client can perform the following operations: create an issue, read issues, read an issue by ID, update an issue, and delete an issue.
Here are examples of how to perform these operations in the client:
- Create an Issue:
node client.js create
- Read Issues:
node client.js read
- Read an Issue by ID:
node client.js readById <issue_id>
- Update an Issue:
node client.js update <issue_id>
- Delete an Issue:
node client.js delete <issue_id>
To run client-side tests using Jest, open terminal and navigate to the test client directory:
cd test
npx jest client.test.js
For server-side testing, I use Supertest to perform integration tests Express.js routes:
cd test
npx jest server.test.js