Installation¶
Clone the repository:¶
git clone https://bitbucket.org/makenaisolutions/authservice.git
cd authservice
Install dependencies:¶
npm install
Set up environment variables:¶
Create a .env file in the root directory and add the following variables:
PORT=3000
APP_NAME=authService
APP_VERSION=1.0.0
SECRET_KEY=your_secret_key
SERVICE_API_KEY=your_service_api_key
APP_ENVIRONMENT=DEV-TESTING
DATASOURCE_FQDN=your_database_fqdn
SERVICE_BD_NAME=your_database_name
SERVICE_BD_SCHEMA=your_database_schema
DATASOURCE_USR=your_database_user
DATASOURCE_PWD=your_database_password
SERVICE_BD_SSL=require
PROXY_URL=your_proxy_url (optional)
Running the Service¶
To start the service, run:
npm run start
The service will be available at http://localhost:3000.