- Nodejs >=16
- MySQL 8
- serve
- In the
src/model/index.ts
file, MySQL is imported for initializing the database connection."
const initializeDB = (cb) => {
const sequelize = new Sequelize('db_name', 'username', 'password', {
...
})
-
Copy the .env.example file to .env in the root directory.
-
Install all dependencies run below command
npm install
npm install -g serve
- Start each service separately using below commands
npm run customers
npm run payment
npm run orders
# run ui using serve
serve ui
- Access the application using below urls
http://localhost:3000/
http://localhost:8081/customer/{id}
http://localhost:8080/payment/transfer/id/4?amount=10000
Install Otelcol-contribute using this link
- you can use collector configuration file
atatus-collector.yaml
for send OTel data to Atatus.
./otelcol-contrib --config=<Your-Local-path>/atatus-collector.yaml