-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (23 loc) · 1.58 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# The event management application
The application can be used for event management purposes.
There core microservices are bookings, campaigns, events and offers.
The events have the information of the types of events (like Kids Birthday party) supported.
bookings saves the booking information.
Time to time campaigns are launched. Each campaign will have offers.
The rules application contains a rules engine created in java using drools framework.
The rules application will be developed further to support multiple rules which will allow to calculate cost based on campaigns and offers.
The token service is used to authentication and for authorization.
An ldap server is setup with user information. The token service written in C++, interacts with ldap server to generate client token
which is used to call the services. The service supports generation of client token and verification of the client credentials.
Steps to run the application:
1. use docker compose to run the service together `docker-compose up`
2. After the services have started run the below command
`docker exec -it openldap sh /container/script/restore-backup.sh`
The above command sets up the test user.
3. Run the postman collection
To test individual services:
1. Run the dynamodb container locally using the below the command.
`docker run -p 8000:8000 --name dynamodb --env AWS_ACCESS_KEY_ID=default --env AWS_SECRET_ACCESS_KEY=default --env AWS_REGION=localhost --env DYNAMO_ENDPOINT=http://localhost:8000 -d --publish-all prdocker/samples:dynamodb`
2. npm install
3. npm test
4. docker stop dynamodb && docker rm dynamodb