forked from open-source-labs/Chronos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request open-source-labs#1 from mattljiang/explore
set up dummy microservices, complete with sample .env files
- Loading branch information
Showing
21 changed files
with
70 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ dist | |
build | ||
coverage | ||
__tests__/**/__snapshots__ | ||
release-builds | ||
release-builds | ||
!.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#replace these sample URIs with your own | ||
BOOK_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/book?retryWrites=true&w=majority | ||
CUSTOMER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/customer?retryWrites=true&w=majority | ||
ORDER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/order?retryWrites=true&w=majority | ||
CHRONOS_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/chronoslogs?retryWrites=true&w=majority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#replace these sample URIs with your own | ||
BOOK_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/book?retryWrites=true&w=majority | ||
CUSTOMER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/customer?retryWrites=true&w=majority | ||
ORDER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/order?retryWrites=true&w=majority | ||
CHRONOS_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/chronoslogs?retryWrites=true&w=majority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#replace these sample URIs with your own | ||
BOOK_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/book?retryWrites=true&w=majority | ||
CUSTOMER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/customer?retryWrites=true&w=majority | ||
ORDER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/order?retryWrites=true&w=majority | ||
CHRONOS_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/chronoslogs?retryWrites=true&w=majority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ const { Schema } = mongoose; | |
// UNCOMMENT THE LINE BELOW AND REPLACE WITH AN ACTUAL MONGODB URI FOR YOUR "CUSTOMERS" DATABASE | ||
// const myURI = 'mongodb+srv://johndoe:[email protected]/'; | ||
require('./chronos-config'); // Bring in config file | ||
const myURI = process.env.MONGO_URI; | ||
const myURI = process.env.CUSTOMER_URI; | ||
|
||
mongoose.connect(myURI, { useNewUrlParser: true, useUnifiedTopology: true }) | ||
.then(() => console.log('Connected!!!********* Customer Database is live!!!')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#replace these sample URIs with your own | ||
BOOK_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/book?retryWrites=true&w=majority | ||
CUSTOMER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/customer?retryWrites=true&w=majority | ||
ORDER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/order?retryWrites=true&w=majority | ||
CHRONOS_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/chronoslogs?retryWrites=true&w=majority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ const { Schema } = mongoose; | |
|
||
// UNCOMMENT THE LINE BELOW AND REPLACE WITH AN ACTUAL MONGODB URI FOR YOUR "ORDERS" DATABASE | ||
require('./chronos-config'); // Bring in config file | ||
const myURI = process.env.MONGO_URI; | ||
const myURI = process.env.ORDER_URI; | ||
// const myURI = 'mongodb+srv://johndoe:[email protected]/'; | ||
|
||
mongoose.connect(myURI, { useNewUrlParser: true, useUnifiedTopology: true }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#replace these sample URIs with your own | ||
BOOK_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/book?retryWrites=true&w=majority | ||
CUSTOMER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/customer?retryWrites=true&w=majority | ||
ORDER_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/order?retryWrites=true&w=majority | ||
CHRONOS_URI=mongodb+srv://user:<password>@cluster0.sample.mongodb.net/chronoslogs?retryWrites=true&w=majority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters