Before setting up the project, ensure you have the following installed:
- Node.js: JavaScript runtime.
- MySQL: Relational database system.
- Redis: Key-value store. Follow the installation guide for setting up a Redis server.
-
Clone the repository:
git clone https://github.com/akshat22/brapi-sample.git
-
Rename
sample.env
toconfig.env
and configure the variables:- Database settings
- Redis server settings
- Host and port for deploying the application
-
Run the
createaudio.sql
script to set up the local database:mysql -u <username> -p < createaudio.sql
-
Install required packages:
npm install
-
Start the application:
npm start
-
You can now make API calls using a tool like Postman.