- [Ticket Socket Enterprise Integration API](#tse-integration-api) - [Installation](#installation) - [Environment Variables](#environment-variables) - [Running the database](#running-the-database) - [Running the app](#running-the-app) - [Test](#
npm install tse-integration-api- Ticket Socket Enterprise Integration API
- Installation
- Environment Variables
- Running the database
- Running the app
- Test
- Swagger docs
Requirements:
Docker
```
bash
$ npm install
Environment variables are required for configuration
.env files are supported at the root of this project directory
``
JWT_SECRET=CHANGE_ME #not used, but required because JWT auth guard is not removed
MONGODB_URI=mongodb://localhost:27030/tse-integration-api
Create tse-integration-api DB (to match MONGODB_URI property from .env file)
Add tse-credentials collection. Record sample for Fiba database
``
{
"privileges" : [
"events",
"check-out"
],
"name" : "fiba",
"clientToken" : "test-token",
"v2ApiUrl" : "https://dev-sc-apne2.ticketsocket.com/development/api/v1/",
"v2StoreFrontKey" : "pk-00ebb45464324465b50127319ea2f84a"
}
Run command:
`bash`
$ docker-compose up
`bashdevelopment
$ npm run start
Test
`bash
unit tests
$ npm run teste2e tests
$ npm run test:e2etest coverage
$ npm run test:cov
``