diff --git a/README.md b/README.md index 5e696f9..cb7508d 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ npm run dev ``` ## TodoService -Before running the TodoService, ensure that you have Node.js, TypeScript (tsc), configured aws-cli and npm installed. +Before running the TodoService, ensure that you have Node.js, TypeScript (tsc) and npm installed. Navigate to the /todo-service directory. diff --git a/infra/docker/.env.example b/infra/docker/.env.example index 4c837e4..bab9296 100644 --- a/infra/docker/.env.example +++ b/infra/docker/.env.example @@ -1,3 +1,10 @@ +## ROOT ## MONGO_INITDB_DATABASE=your-database-name MONGO_INITDB_ROOT_USERNAME=your-username -MONGO_INITDB_ROOT_PASSWORD=your-password \ No newline at end of file +MONGO_INITDB_ROOT_PASSWORD=your-password + +## Todo User ## +DB_USERNAME=user +DB_PASSWORD=12345 +DB_NAME=user_db +DB_USER_ROLE=readWrite diff --git a/notification-service/.env.eample b/notification-service/.env.eample new file mode 100644 index 0000000..80e8ebc --- /dev/null +++ b/notification-service/.env.eample @@ -0,0 +1,10 @@ +## AWS-SDK ## +AWS_ACCESS_KEY_ID={AWS_ACCESS_KEY_ID} +AWS_SECRET_ACCESS_KEY={AWS_SECRET_ACCESS_KEY} +AWS_REGION={AWS_REGION} +AWS_SQS_URL=https://sqs.{AWS_REGION}.amazonaws.com/{ACCOUNT_ID}/ +AWS_SQS_QUEUE_NAME={NAME_OF_QUEUE} + +## MONGO USER ## +DATABASE_URL=mongodb://{USER}:{PASSWORD}@localhost:27017/{DB_NAME} +MONGO_DB_NAME={USER_DB_NAME} \ No newline at end of file diff --git a/todo-service/.env.example b/todo-service/.env.example new file mode 100644 index 0000000..ee8feb9 --- /dev/null +++ b/todo-service/.env.example @@ -0,0 +1,18 @@ + +#### MONGODB #### + ## TODO MONGO USER ## + PORT={PORT} + DATABASE_URL=mongodb://{USER}:{PASSWORD}@localhost:27017/{DB_NAME} + MONGO_DB_NAME={USER_DB_NAME} + + ## MONGO_ROOT ## + MONGO_INITDB_DATABASE={DB_NAME} + MONGO_INITDB_ROOT_USERNAME={USER} + MONGO_INITDB_ROOT_PASSWORD={PASSWORD} + +## AWS-SDK ## +AWS_ACCESS_KEY_ID={AWS_ACCESS_KEY_ID} +AWS_SECRET_ACCESS_KEY={AWS_SECRET_ACCESS_KEY} +AWS_REGION={AWS_REGION} +AWS_SQS_URL=https://{AWS_REGION}.amazonaws.com/{ACCOUNT_ID}/ +AWS_SQS_QUEUE_NAME={NAME_OF_QUEUE} \ No newline at end of file