This is a simple Express.js API created for a technical test.
- Clone the repository:
git clone https://github.com/cundus/POS.git - Navigate to the project directory:
cd POS - Install dependencies:
npm install - Start the server:
npm start - Access the API at
http://localhost:3010
GET /api: Get a welcome message.GET /api/products: Get a list of products.POST /api/product/add: Add new product.POST /api/transaction/add: Add new transaction.
You can test the API using tools like curl or Postman:
- Make a GET request to
http://localhost:3010/apifor the welcome message. - Make a GET request to
http://localhost:3010/api/productsto fetch the list of products.