Billing Back Office is a Node.js and Express based service for Billing UI App. For database this app uses SQL.
-
Clone the repository:
git clone https://github.com/Thiya11/billingBackOffice.git cd projectName -
Initial set up of the project:
npm install
-
Create RSA256 keys to get start with JWT authentication
ssh-keygen -t rsa -b 4096 -m PEM -f /keys/rsa.key Enter passphrase (empty for no passphrase): [Press Enter] //do not set passphrase Enter same passphrase again: [Press Enter] //do not set passphrase openssl rsa -in /keys/rsa.key -pubout -outform PEM -out /keys/rsa.key.pub
It will create rsa keys inside keys folder
-
Now create ###.env file and add the following fields
- DB_HOST=localhost
- DB_PORT=3306
- DB_USER_NAME=
- DB_USER_PASSWORD=
- DB_NAME=
- PASSWORD_SALT=
- SESSION_SECRET=
- Include your password and secret values respectively.
-
Now start running your node app first time
npm start