-
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.
add readme and additional env variable
- Loading branch information
Tony Mauro
committed
May 29, 2021
1 parent
cd0d352
commit 903f88b
Showing
7 changed files
with
37 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 5eImport | ||
|
||
This tool is designed to import the great JSON files from the 5e.tools data into a MongoDB collection. It combines all the files that would be related to the data being imported so items can be stored as a single collection. | ||
|
||
Specific sources can be selected in the import using the arrays in supportedSources.js | ||
|
||
Currently support | ||
|
||
- bestiary | ||
- items and items base | ||
- spells | ||
- races | ||
- classes (does not allow selection of sources) | ||
|
||
### .ENV file | ||
|
||
``` | ||
MONGODB="mongodb+srv://user:password@localhost?retryWrites=true&w=majority" | ||
DBNAME="5e" | ||
``` | ||
|
||
### Running imports | ||
|
||
``` | ||
npm run items | ||
npm run items-base | ||
npm run spells | ||
npm run monsters | ||
npm run races | ||
npm run classes | ||
``` |
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
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
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