Login to the private artifactory (ask maintainers for credentials):
npm login
Install dependencies:
npm i
Initialize DB structure:
npm run db-sync
Run in development mode:
npm run dev
Run in production mode:
npm start
Configuration could be performed by creation of the environment specific configuration files or by defining environment variables.
DB_NAME - Name. Default: gpn-security.
DB_HOST - Host. Default: localhost.
DB_PASSWORD - Password. Default: 1qazse4rfv.
DB_PORT - Port. Default: 30933.
DB_SCHEMA - Schema. Default: public.
DB_USER - User. Default: admin.
PORT - Server port. Default: 80.
PUBLIC_STATIC_FILES_FOLDER - Public static files folder. Default: public.
PUBLIC_STATIC_FILES_PATH - Public static files path. Default: /.
AUTH_SECRET - Secret key.
AUTH_TOKEN_EXPIRATION_TIME - Authentication token expiration time. Default: 1h.
API_PREFIX - Api prefix. Default: api.
SWAGGER_PREFIX - Swagger portal prefix. Default: api-doc.
Content type
Image
Digest
Size
204.9 MB
Last updated
over 5 years ago
docker pull ibmgpn/platform-security